boost 编译

VS2010的编译:

bjam --toolset=msvc-10.0 --build-type=complete

bjam --without-python --toolset=msvc-10.0 --build-type=complete --prefix="d:\boost\boost_1_43_0" stage

bjam.exe --build-type=minimal --with-date_time --with-filesystem --with-program_options --with-regex --with-serialization --with-system --with-thread toolset=msvc-9.0 variant=release link=static threading=multi stage

MINIMAL的编译: 

./bjam --build-type=minimal --with-date_time --with-filesystem --with-program_options --with-regex --with-serialization --with-system --with-thread variant=release link=static threading=multi stage

./bjam --build-type=minimal --with-date_time --with-filesystem --with-program_options --with-regex --with-serialization --with-system --with-thread variant=release link=static threading=multi stage

vs2013编译64位的( -j4 是开4个线程):

bjam.exe stage --toolset=msvc-12.0 --stagedir=".\bin\vc12_x64" --build-type=complete address-model=64 -j4
vs2013编译32位的( -j4 是开4个线程):
bjam.exe stage --toolset=msvc-12.0 --stagedir=".\bin\vc12_x86" --build-type=complete address-model=32 -j4

当然,所有工作开始以前,记得运行一下 bootstrap.bat (WIN环境)

猜你喜欢

转载自blog.csdn.net/u_1_n_2_i_3/article/details/8894722