PDA

View Full Version : Compiling Boost library for mingw32 on linux...



rksk16it
August 14th, 2007, 10:44 PM
Hi friends :)
I want to install Boost library for mingw32 compiler installed on my Ubuntu. I already have native libraried for boost...but i need to cross-compile programs for windows.

I tried to compile Boost with mingw32 compiler, the compilation was successful, but....it produced "*.so" files, but i need "*.a" files, so that they can be used with mingw.

I read other places about cross-compiling, when creating this thread...but all those are specific to wxWidgets, whose "./configure" has an option like "--host=i586-mingw", but this is not so with Boost.

If anyone know any way to achieve that, or know any links which can help me, it will be nice :)

And if anyone is sure this cant be done, pls tell me that too....

Thanks :)

Alex.Gorban
August 14th, 2008, 11:24 AM
I'm trying to do the same. Is there any progress in solving the problem?

CodeAlias
January 6th, 2009, 07:48 AM
Hi,

You can try to add AC_DISABLE_SHARED to the configure.ac file then run autoconf again.

See Using mingw and libtool to cross-compile static libraries (http://www.codealias.info/technotes/using_mingw_and_libtool_to_cross_compile_static_li braries) for an example.

Hope it helps.
---
Networking and Coding Articles (http://www.codealias.info/)
Subscribe (http://feedproxy.google.com/codealias)