Build Boost 1.45 using MinGW

Try compiling Boost 1.45 on Windows XP using MinGW. I did this a year ago and almost forgot how to repeat it.

% PATH% contains the MinGW path.
user-config.jam contains using gcc ;
bjam (ntx86 one) from here .

Output:

 <path> > bjam --build-dir="E:\Boost" --build-type=complete toolset=gcc stage <path>/tools/build/v2/build\configure.jam:145: in builds-raw *** argument error * rule UPDATE_NOW ( targets * : log ? : ignore-minus-n ? ) * called with: ( <pbin.v2\libs\regex\build\gcc-mingw-4.4.1\debug>has_icu.exe : : ignore-minus-n : ignore-minus-q ) * extra argument ignore-minus-q (builtin):see definition of rule 'UPDATE_NOW' being called <path>/tools/build/v2/build\configure.jam:179: in configure.builds <path>/tools/build/v2/build\configure.jam:216: in object(check-target-builds-worker)@409.check 
+4
source share
6 answers

We downloaded the previous version of Boost - 1.44. The same bjam ( 3.1.18-1-ntx86 ) with Boost 1.44 works fine.

0
source

To build bjam using MinGW:

 bootstrap.bat mingw 

This compiled version of bjam worked for me.

+2
source

The easiest way to improve performance with MinGW is to use MSYS. Follow the instructions on this page to configure MSYS and install the boost directory:

http://www.mingw.org/wiki/msys

Then just enter the bjam command as usual from MSYS.

+1
source

BJam is included in the Boost version in \tools\build\v2\engine\src . Do not make the mistake I made, and try to use a separate BJam download - this does not work.

+1
source

After much research, I got it to work and wrote a walkthrough here:

http://petrkout.com/windows-2/compile-c-boost-libraries-in-windows-7-using-mingw32-and-masm32/

Hope this helps.

+1
source
 ./bootstrap.sh --with-toolset=mingw --prefix=/pathtomingw 

worked for me

0
source

Source: https://habr.com/ru/post/1338778/


All Articles