Thread overview | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
November 21, 2010 Announcing: D support in SWIG | ||||
---|---|---|---|---|
| ||||
In a nutshell, SWIG is a »glue code« generator, allowing you to access C/C++ libraries from various target languages, including C#, Go, Java, Ruby, Python … and, since I merged my work into SWIG trunk a few days ago, also D, both version 1 and 2. I have put up a short description of it at my blog (http://klickverbot.at/blog/2010/11/announcing-d-support-in-swig/), but to give it a whirl, just head over to the SWIG SVN and build it from there (http://swig.org/svn.html). I would be glad if some brave souls could go ahead and test it in real-world use cases before it is officially released with SWIG for the first time (SWIG 2.0.2, date yet to be determined), so that any major bugs can be ironed out before. If you have any questions or suggestions, feel free to post them here, drop me a line, or ask right away in #D at freenode. While I am quite busy at the moment, I'd be happy to help you with any issues (particularly happy if they concern the SWIG side of implementing enhancements, obviously, but also simple usage questions). Besides that, as always, it would be nice just to hear about what you are using this for. Happy coding, David |
November 22, 2010 Re: Announcing: D support in SWIG | ||||
---|---|---|---|---|
| ||||
Posted in reply to klickverbot | Hello klickverbot,
> In a nutshell, SWIG is a »glue code« generator, allowing you to access
> C/C++ libraries from various target languages, including C#, Go, Java,
> Ruby, Python . and, since I merged my work into SWIG trunk a few days
> ago, also D, both version 1 and 2.
>
I'm so tempted to go learn Go so I can write a program that's half D, half Go and some SWIG to tie the two together.
|
November 22, 2010 Re: Announcing: D support in SWIG | ||||
---|---|---|---|---|
| ||||
Posted in reply to klickverbot | On 21-nov-10, at 18:27, klickverbot wrote:
> In a nutshell, SWIG is a »glue code« generator, allowing you to access C/C++ libraries from various target languages, including C#, Go, Java, Ruby, Python … and, since I merged my work into SWIG trunk a few days ago, also D, both version 1 and 2.
>
> I have put up a short description of it at my blog (http://klickverbot.at/blog/2010/11/announcing-d-support-in-swig/), but to give it a whirl, just head over to the SWIG SVN and build it from there (http://swig.org/svn.html).
>
> I would be glad if some brave souls could go ahead and test it in real-world use cases before it is officially released with SWIG for the first time (SWIG 2.0.2, date yet to be determined), so that any major bugs can be ironed out before.
>
> If you have any questions or suggestions, feel free to post them here, drop me a line, or ask right away in #D at freenode. While I am quite busy at the moment, I'd be happy to help you with any issues (particularly happy if they concern the SWIG side of implementing enhancements, obviously, but also simple usage questions). Besides that, as always, it would be nice just to hear about what you are using this for.
>
> Happy coding,
> David
nice work David, I was following your github repository, nice that you made into the official repository.
Fawzi
|
November 24, 2010 Re: Announcing: D support in SWIG | ||||
---|---|---|---|---|
| ||||
Posted in reply to klickverbot | Hi David,
let me shake your hands and say Thank You, GREAT work.
It was a bit difficult to build SWIG SVN on Windows. However. it was doable and as soon as I have some free time I will try make a few tests on a Win C++ GUI project.
Bjoern
On 21/11/2010 18:27, klickverbot wrote:
> In a nutshell, SWIG is a »glue code« generator, allowing you to access
> C/C++ libraries from various target languages, including C#, Go, Java,
> Ruby, Python … and, since I merged my work into SWIG trunk a few days
> ago, also D, both version 1 and 2.
>
> I have put up a short description of it at my blog
> (http://klickverbot.at/blog/2010/11/announcing-d-support-in-swig/), but
> to give it a whirl, just head over to the SWIG SVN and build it from
> there (http://swig.org/svn.html).
>
> I would be glad if some brave souls could go ahead and test it in
> real-world use cases before it is officially released with SWIG for the
> first time (SWIG 2.0.2, date yet to be determined), so that any major
> bugs can be ironed out before.
>
> If you have any questions or suggestions, feel free to post them here,
> drop me a line, or ask right away in #D at freenode. While I am quite
> busy at the moment, I'd be happy to help you with any issues
> (particularly happy if they concern the SWIG side of implementing
> enhancements, obviously, but also simple usage questions). Besides that,
> as always, it would be nice just to hear about what you are using this for.
>
> Happy coding,
> David
|
December 02, 2010 Re: Announcing: D support in SWIG | ||||
---|---|---|---|---|
| ||||
Posted in reply to klickverbot | Sorry if this might come a bit late for anybody following SWIG SVN trunk, but I needed to make a breaking naming change to the D module of SWIG to bring it more in line with the C# support. The details, along with a sed script for fixing any custom typemaps: ttp://klickverbot.at/blog/2010/12/swig-d-breaking-name-changes/ This should have been the last major breaking change, at least I hope so. David |
December 02, 2010 Re: Announcing: D support in SWIG | ||||
---|---|---|---|---|
| ||||
Posted in reply to klickverbot | On 12/2/10 6:00 PM, klickverbot wrote: > The details, along with a sed script for fixing any custom typemaps: > ttp://klickverbot.at/blog/2010/12/swig-d-breaking-name-changes/ Oops, there is an h missing, that should have obviously been http://klickverbot.at/blog/2010/12/swig-d-breaking-name-changes/. |
December 08, 2010 Re: Announcing: D support in SWIG | ||||
---|---|---|---|---|
| ||||
Posted in reply to BLS | On 11/24/10, BLS <windevguy@hotmail.de> wrote:
> Hi David,
> let me shake your hands and say Thank You, GREAT work.
>
> It was a bit difficult to build SWIG SVN on Windows.
Just finding those automake/autoconf/bison binaries is a detectives' work.
How did u build from svn?
|
December 08, 2010 Re: Announcing: D support in SWIG | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | On 08/12/2010 18:48, Andrej Mitrovic wrote:
> On 11/24/10, BLS<windevguy@hotmail.de> wrote:
>> Hi David,
>> let me shake your hands and say Thank You, GREAT work.
>>
>> It was a bit difficult to build SWIG SVN on Windows.
>
> Just finding those automake/autoconf/bison binaries is a detectives' work.
>
> How did u build from svn?
If I recall correctly, I've just installed MinGW, and MSYS
calling svn, make,makeinstall. There was however a problem with pcre (I am using 8.10) I found the solution by reading the error message from make regarding pcre very careful. Sorry that all I can tell you atm.
beside, to start msys via menu look for MinGW Shell
hth bjoern
|
December 08, 2010 Re: Announcing: D support in SWIG | ||||
---|---|---|---|---|
| ||||
Posted in reply to BLS | Okay, got it working now. I've installed MinGW (again) via that new mingw-get installer from sourceforge. And I had the same error message as you, so I've downloaded pcre-8.01.tar.bz2 from ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/, I've put it in my swig svn directory (C:\MinGW\msys\1.0\src\swig) and I've ran the tools/pcre-build.sh script. So I've ran ./configure again and make. It's building right now. On 12/8/10, BLS <windevguy@hotmail.de> wrote: > On 08/12/2010 18:48, Andrej Mitrovic wrote: >> On 11/24/10, BLS<windevguy@hotmail.de> wrote: >>> Hi David, >>> let me shake your hands and say Thank You, GREAT work. >>> >>> It was a bit difficult to build SWIG SVN on Windows. >> >> Just finding those automake/autoconf/bison binaries is a detectives' work. >> >> How did u build from svn? > > If I recall correctly, I've just installed MinGW, and MSYS > calling svn, make,makeinstall. There was however a problem with pcre (I > am using 8.10) I found the solution by reading the error message from > make regarding pcre very careful. Sorry that all I can tell you atm. > beside, to start msys via menu look for MinGW Shell > hth bjoern > |
December 08, 2010 Re: Announcing: D support in SWIG | ||||
---|---|---|---|---|
| ||||
Am I supossed to use --with-d2-compiler=C:\DMD\dmd2\windows\bin\dmd.exe or just --with-d2-compiler=C:\DMD\ path when calling configure? On 12/8/10, Andrej Mitrovic <andrej.mitrovich@gmail.com> wrote: > Okay, got it working now. > > I've installed MinGW (again) via that new mingw-get installer from sourceforge. And I had the same error message as you, so I've downloaded pcre-8.01.tar.bz2 from ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/, I've put it in my swig svn directory (C:\MinGW\msys\1.0\src\swig) and I've ran the tools/pcre-build.sh script. > > So I've ran ./configure again and make. It's building right now. > > On 12/8/10, BLS <windevguy@hotmail.de> wrote: >> On 08/12/2010 18:48, Andrej Mitrovic wrote: >>> On 11/24/10, BLS<windevguy@hotmail.de> wrote: >>>> Hi David, >>>> let me shake your hands and say Thank You, GREAT work. >>>> >>>> It was a bit difficult to build SWIG SVN on Windows. >>> >>> Just finding those automake/autoconf/bison binaries is a detectives' work. >>> >>> How did u build from svn? >> >> If I recall correctly, I've just installed MinGW, and MSYS >> calling svn, make,makeinstall. There was however a problem with pcre (I >> am using 8.10) I found the solution by reading the error message from >> make regarding pcre very careful. Sorry that all I can tell you atm. >> beside, to start msys via menu look for MinGW Shell >> hth bjoern >> > |
Copyright © 1999-2021 by the D Language Foundation