Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Boost installation -Simplified Build From Source

Tags:

c++

boost

As mentioned in the docs

what do i need to install to run the commands :

bootstrap
.\bjam

The BoostPro Computing folks maintain the Boost installer for Windows, but if I first run the installer and download a minimal build and then run the installer again, the installer doesn't detect that I've already installed Boost already and I need some more libraries. Is there a way around ?

like image 304
iceman Avatar asked Dec 13 '22 01:12

iceman


1 Answers

Set up Your BOOST_ROOT environment variable first:

winXP:

set BOOST_ROOT=D:\your\boost\sources

then in the BOOST_ROOT directory run:

boostrap.bat

this will create your bjam.exe and it's environment. Next step is to invoke:

bjam toolset=msvc stage

This will compile Your boost library and place all libs into the folder:

%BOOST_ROOT%\stage\lib

If you want to build everything use:

bjam toolset=msvc -a --build-type=complete stage

instead stage you can put install this will simply install this to lib. During building there will be created huge directory bin.v2 with all object files. Total installation is aprox: 1.5 GB for libs (shared+static+debug&release).

like image 186
bua Avatar answered Feb 02 '23 10:02

bua