windows下命令编译boost的基本参数说明(以1.62为例):
bjam install ^ --prefix=E:caffe-staticreleaseboost_windows_vc140_x86_64_md ^ --without-python -a -d+3 -q -j8 ^ --debug-configuration ^ link=static ^ runtime-link=shared ^ toolset=msvc-14.0 ^ address-model=64 ^ release debug命令行参数说明:
install|stage 指定安装方式,intall 安装include 头文件和库文件,stage只安装库文件–prefix 'install’安装时指定安装位置–stagedir 'stage’安装时指定安装位置–without-<library>指定不编译的库<library>,可选项,不指定编译所有库–with-<library> 编译安装指定的库<library>,可选项,不指定编译所有库 所有库列表: atomic chrono container context coroutine date_time exception filesystem graph graph_parallel iostreams locale log math mpi program_options python random regex serialization signals system test thread timer wave-a 全部重新编译,可选项-d+3 log信息显示级别,可选项-q 参数指示出错就停止编译,可选项-jx 并发编译线程数,提高编译速度,可选项link=static 编译静态库–debug-configuration 编译时显示加载的配置信息,可选项toolset 指定编译器工具链,本文中msvc-14.0是Visual Studio 2015address-model 指定生成的寻址模式,=32 编译32位库,=64编译64位库link=static|shared 指定生静态库(staic)或动态库(shared)runtime-link=static|shared static --指定生的boost库链接静态C/C++运行库, 对于MSVC对应 /MT shared --指定生的boost库链接动态C/C++运行库, 对于MSVC对应 /MDrelease debug 同时生成debug和release版本 ---来自腾讯云社区的---用户1148648
微信扫一扫打赏
支付宝扫一扫打赏