Building Boost 1.52 with MinGW
I am trying to find an authorative answer on how to build Boost 1.52 with MinGW. I found some pointers in the Internet that boil down to build it like so:
cd tools\build\v2\engine
build.bat mingw
copy bin.ntx86\bjam.exe ..\..\..\..
cd ..\..\..\..
bjam --toolset=gcc
Since those instructions date back as far as for Boost 1.45 and since I couldn't verify this with Boost's own instructions I'd like to verify if the steps above are the correct ones to build Boost with MinGW.
I tried these steps myself and it seemed to build Boost, however I have not yet done extensive testing (nor would I have a concept to do this).
Solution 1:
Yes, that is correct. However there would have been a simpler, yet identical way; your steps until the bjam call are automatically done by bootstrap.bat
:
C:\boost_1_52_0> bootstrap.bat mingw
Building Boost.Build engine
...
C:\boost_1_52_0> b2 toolset=gcc
If not explicitly specified, the libraries will be placed into the stage\lib
directory, include path is the installation root. To test the installation, you can use the example from Link Your Program to a Boost Library.
References: Installation, Prepare to Use a Boost Library Binary