python/C++混合编程之boost库安装

 

下载地址:https://www.boost.org/users/download/html

image

在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... /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)。ide

 

2. 开始编译boost程序 ui

./bjam

 

3. 安装spa

sudo ./b2 install

安装完成以后:3d

     头文件:/usr/local/include/boost/unix

     库文件::/usr/local/lib/libboost_xxxxxcode

     大体有以下:

image

相关文章
相关标签/搜索