1. ./bootstrap.sh --with-libraies=all --with-toolset=gcc --prefix=/home/liuting/boost_1.77/myInstall 生产编译工具b2
(PS:--with-libraires=all为编译所有boost库,可根据需要指定相应boost库,
./bootstrap.sh --with-libraries=system,thread,log )
2. ./b2 install --prefix=/home/liuting/boost_1.77/myInstall安装 安装完后有两个文
件夹,分别为lib和include 此处的路径是重新指定的路径
本文档详细介绍了如何使用bootstrap.sh脚本编译Boost库,包括如何选择编译全部库或特定库,如system, thread, log等。通过指定--prefix参数,可以将安装目录设置为/home/liuting/boost_1.77/myInstall,确保编译完成后,lib和include文件夹位于该路径下,方便后续使用。
937

被折叠的 条评论
为什么被折叠?



