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).
Install Boost (Windows) Extract in a Boost folder located at C:\ or C:\Program files so that CMake find-modules can detect it. Invoke the command line and navigate to the extracted folder (e.g. cd C:\Boost\boost_1_63_0 ).
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With