1.准备
运行 bootstrap.bat
2.project-config.jam的设置
using msvc ;
using python
: 2.7
: d:\\python27
: d:\\python27\\include
: d:\\python27\\libs
;
如果不设置python路径的话,会导致有很多无法解析的符号的错误。
3.生成
x64 debug
bjam --with-python --prefix=d:\boost stage toolset=msvc-10.0 variant=debug link=shared address-model=64 threading=multi runtime-link=shared install
x64 release
bjam --with-python --prefix=d:\boost stage toolset=msvc-10.0 variant=release link=shared address-model=64 threading=multi runtime-link=shared install
在64位编译32位的boost python
1. 安装32位的python
2.同上面设置
3.使用下面的命令
bjam --with-python --prefix=d:\boost stage toolset=msvc-10.0 variant=debug link=shared address-model=32 architecture=x86 threading=multi runtime-link=shared install
编译所有的静态库
bjam --prefix=g:\boost stage toolset=msvc-10.0 variant=debug address-model=32 architecture=x86 threading=multi install