Cross-compilation with mingw32 on Linux
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@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@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
Maciej Blizinski wrote:
maciej@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?
Looks like you need to compile or download bjam first. That's what the error message looks like to me. JP
participants (2)
-
John Pye
-
Maciej Blizinski