vs2012编译boost_1_53_0

vs2012编译boost_1_53_0

第一步: build Boost.Build
H:\boost\boost_1_53_0\tools\build\v2>bootstrap.bat

第二步: Install Boost.Build
H:\boost\boost_1_53_0\tools\build\v2>.\b2 --prefix=H:\boost\boost_1_53_0\bin install

Change your current directory to the Boost root directory and invoke b2 as follows:

第三步: 设置环境变量,boost依赖的库
H:\boost\boost_1_53_0>set BZIP2_SOURCE="H:\bzip2-1.0.6"
H:\boost\boost_1_53_0>set ZLIB_SOURCE="H:\zlib-1.2.7"
H:\boost\boost_1_53_0>set ICU_PATH="H:\icu4c-50_1_2"

第四步:编译boost

H:\boost\boost_1_53_0>bjam --toolset=msvc --build-type=complete (单个VS环境)

H:\boost\boost_1_53_0>bjam --toolset=msvc-11.0 --build-type=complete (多个VS环境vc10 vc11 vc9 vc8 vc7)

第五步:安装boost

H:\boost\boost_1_53_0>bjam --prefix=H:\boost\boost_1_53_0 install

你可能感兴趣的:(C/C++)