Boost logo

Boost Users :

From: Maciej Blizinski (maciej.blizinski_at_[hidden])
Date: 2007-05-14 16:03:00


Hi Boost users,

I have setup a MinGW cross-compilation suite on my Linux box. To
create a Windows binary, the only thing I need to do is call specific
C++ compiler name:

$ i686-mingw32-g++ -o hello.exe hello.cpp

Now I have a Windows executable on my disk, I can test it with wine:

$ wine hello.exe
Hello, world!

I've written a program in C++; I would like to create binary for
windows. I'm using Boost libraries, so I need to cross-compile Boost
as well.

I've tried to compile Boost like this:

maciej_at_clover ~/src/boost_1_34_0 $ ./configure --with-toolset=mingw
--prefix=$HOME/win32
Building Boost.Jam with toolset mingw... ./configure: line 199:
./bootstrap/jam0: No such file or directory
tools/jam/src//bjam
Detecting Python version... 2.4
Detecting Python root... /usr
Unicode/ICU support for Boost.Regex?... /usr
Backing up existing Boost.Build configuration in user-config.jam.6
Generating Boost.Build configuration in user-config.jam...
Generating Makefile...

Error messages... but Makefile has been created. Trying...

maciej_at_clover ~/src/boost_1_34_0 $ make
./tools/jam/src//bjam -sICU_PATH=/usr --user-config=user-config.jam
/bin/sh: ./tools/jam/src//bjam: No such file or directory
Not all Boost libraries built properly.

Can I somehow compile Boost using i686-mingw-c++ compiler? Any suggestions?

-- 
Maciej Bliziński
http://automatthias.wordpress.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net