boost 编译

1. 编译bjam

./tools/build/v2/engine/build.sh
目标文件bjam会生成到tools/jam/stage/bin.linuxxx86_64
建议cp到/usr/local/bin目录下(需要root权限)


2. 编译boost库
安装目录下bjam --toolset=gcc install
AIX下使用--toolset=vacpp
WIN下使用--toolset=msvc
编译64bit目标--address_model=64
  toolset=toolset         Indicates the toolset to build with.

  variant=debug|release   Select the build variant

  link=static|shared      Whether to build static or shared libraries

  threading=single|multi  Whether to build single or multithreaded binaries

  runtime-link=static|shared     
                          Whether to link to static or shared C and C++ runtime.
单独编译某个库--with-库名如--with-thread --with-system --with-date_time

你可能感兴趣的:(boost 编译)