Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building Boost 1.52 with MinGW

Tags:

mingw

boost

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).

like image 938
René Nyffenegger Avatar asked Nov 06 '12 18:11

René Nyffenegger


People also ask

Where do I put my boost Install?

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 ).


1 Answers

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

like image 132
Anonymous Coward Avatar answered Oct 06 '22 23:10

Anonymous Coward