下载地址:https://www.boost.org/users/download/
在ubunt16.04上编译:
1. 运行bootstrap.sh:编译生成boost的编译引擎
sudo ./bootstrap.sh
Building Boost.Build engine with toolset gcc... tools/build/src/engine/bin.linuxx86_64/b2 Detecting Python version... 2.7 Detecting Python root... /usr Unicode/ICU support for Boost.Regex?... not found. // 这个地方我没有管他 Generating Boost.Build configuration in project-config.jam... Bootstrapping is done. To build, run: ./b2 To adjust configuration, edit 'project-config.jam'. Further information: - Command line help: ./b2 --help - Getting started guide: http://www.boost.org/more/getting_started/unix-variants.html - Boost.Build documentation: http://www.boost.org/build/doc/html/index.html
其编译了boost的编译引擎(bjam/b2)。
2. 开始编译boost程序
./bjam
3. 安装
sudo ./b2 install
安装完成之后:
头文件:/usr/local/include/boost/
库文件::/usr/local/lib/libboost_xxxxx
大致有如下: