Re: Cross build swig for Windows

William S Fulton <[email protected]> Sat, 30 Jan 2021 19:24:12 +0000
Newsgroups gmane.comp.programming.swig
Message-ID <CANGqftBCyrEz+qDjTJygD9tEYPBi68FHWKL9XyXydD5zjY=AuA@mail.gmail.com>
You can use the scripts we use for building the official SWIG Windows
executable. It cross compiles on Linux to Windows x86.
https://github.com/swig/swig/blob/master/Tools/mkwindows.sh.

Use it like this:

./mkwindow.sh 4.0.2

for which you need the swig-4.0.2.tar.gz release tarball and a pcre
tarball, such as pcre-8.02.tar.bz2. I believe the invocation you are
interested in is:

./configure --host=i686-w64-mingw32 --build=i686-linux

More info for the packages required on Ubuntu are at
https://github.com/swig/swig/wiki/Getting-Started#building-a-full-release.

William

On Fri, 15 Jan 2021 at 06:10, Russell Haley <[email protected]> wrote:

> Hi,
>
> I'm attempting to cross compile swing Linux->Windows. I've added my cross
> compiler to my path and ran configure:
>
> ./configure --host=x86_64-w64-mingw32 \
> --prefix=/home/osboxes/swig-win32 \
>
> I've compiled PCRE in an adjacent git repo. How do I add the PCRE build
> directory to my swig configure call?
>
> _______________________________________________
> Swig-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/swig-user
>

_______________________________________________
Swig-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/swig-user