下載地址:https://www.boost.org/users/download/html
在ubunt16.04上編譯:linux
1. 運行bootstrap.sh:編譯生成boost的編譯引擎bootstrap
sudo ./bootstrap.sh
個人提示以下:app
Building Boost.Build engine with toolset gcc... tools/build/src/engine/bin.linuxx86_64/b2 Detecting Python version... 2.7 Detecting Python root... /usrUnicode/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)。ide
2. 開始編譯boost程序 ui
./bjam
3. 安裝spa
sudo ./b2 install
安裝完成以後:3d
頭文件:/usr/local/include/boost/unix
庫文件::/usr/local/lib/libboost_xxxxxcode
大體有以下: