Boost installation -Simplified Build From Source
As mentioned in the docs
what do i need to install to run the开发者_JAVA百科 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 ?
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).
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
精彩评论