boost编译与安装

boost编译与安装:

b2 stage --toolset=msvc-14.2 --stagedir="D:\boost\stage\boost_1_78_0\vc142" --with-date_time link=static runtime-link=shared runtime-link=static threading=multi debug release
b2 install --prefix="D:\boost\install\boost_1_78_0\vc142" --with-date_time

b2 stage --toolset=msvc-14.2 --stagedir="D:\boost\stage\boost_1_78_0\vc142" --with-date_time link=static runtime-link=shared threading=multi debug release
b2 install --prefix="D:\boost\install\boost_1_78_0\vc142" --with-date_time

b2 stage --toolset=msvc-14.2 --stagedir="D:\boost\stage\boost_1_78_0\vc142" --with-date_time --build-type=complete
b2 stage --toolset=msvc-14.2 --stagedir="D:\boost\stage\boost_1_78_0\vc142" --with-date_time --build-type=complete --no-cmake-config
b2 install --prefix="D:\boost\install\boost_1_78_0\vc142" --with-date_time

b2 stage --toolset=msvc-14.2 --stagedir="D:\boost\stage\boost_1_78_0\vc142" --build-type=complete
b2 install --prefix="D:\boost\install\boost_1_78_0\vc142"

boost源码、编译、安装存储目录结构,形如:
D:\boost\boost_1_78_0
\install
\stage

boost_1_78_0 形如此的不同版本的源码

install 包含:头文件、库

stage 包含:库

stage和install具有相同的编译目录。

install
boost_1_78_0
vc142
include
lib

stage
boost_1_78_0
vc142
lib

参考博客:https://zhuanlan.zhihu.com/p/85806857
参考博客:https://blog.csdn.net/weixin_30613433/article/details/95876222

posted @ 2022-01-28 11:39  echohelper  阅读(486)  评论(0编辑  收藏  举报