iceman
iceman

Reputation: 4261

Boost installation -Simplified Build From Source

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 ?

Upvotes: 4

Views: 4479

Answers (2)

iceman
iceman

Reputation: 4261

I also found this link in another post for boost binaries. Just downloading and its very helpful. If anyone has tried this out and had issues, let us know

Upvotes: 5

bua
bua

Reputation: 4870

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

Upvotes: 8

Related Questions