Windows下VS2015编译64位Boost1.64

参考原帖:https://gist.github.com/UnaNancyOwen/d879a41710e9c05025f8#file-boost1-64-0-md

下载

1.下载Boost1.64.0(boost_1_64_0-bin-msvc-all-32-64.7z)并解压缩文件。
链接:boost_1_64_0
此处建议下载这个.7z的包,里面有log文件可以直接帮助编译。
2.微软MPI 8.0.12438.0和(MSMpiSetup.exe)下载并安装微软MPI SDK 8.0.12438.0的(msmpisdk.msi)。
(分别安装在C:\ Program Files \ Microsoft MPI和C:\ Program Files(x86)\ Microsoft SDKs \ MPI)
Microsoft MPI

Build

1.boost1.64版本目录下没有getdata.hpp,没有这个文件无法编译出与mpi相关的文件。
下载链接:get_data.hpp
将下载的文件复制到..\boost_1_64_0\boost\serialization\detail目录下。
2.使用管理员权限启动Visual Studio开发人员命令提示符(“VS2015 x64本地工具通用提示符”)并执行以下命令。
*除非使用管理员权限调用开发人员命令提示符,否则安装将失败。

cd D:\boost_1_64_0   //解压目录
bootstrap.bat

3.修改生成的project-config.jam。
在boost_1_64_0 \ project-config.jam 第4行(添加)如下代码后保存

using mpi ;

4.在第2步骤的命令中输入

b2 -j4 --build-type=complete toolset=msvc-14.0 address-model=64 architecture=x86 --prefix="D:\Boost" install

–prefix参数后设置要生成编译库的路径。
5.构建成功后,将在 / lib中生成以下文件。

libboost_atomic-vc 141 - mt - 1 _ 64. lib
libboost_atomic-vc 141 - mt - gd - 1 - 64. lib
libboost_chrono - vc 141 - mt - 1 _ 64. lib
libboost_chrono - vc 141 - mt - gd - 1 - 64. lib
libboost_container - vc 141 - mt - 1 _ 64. lib
libboost_container - vc 141 - mt - gd - 1 - 64. lib
libboost_context - vc 141 - mt - 1 - 64. lib
libboost_context - vc 141 - mt - gd - 1 - 64. lib
libboost_coroutine - vc 141 - mt - 1 _ 64. lib
libboost_coroutine - vc 141 - mt - gd - 1 - 64. lib
libboost_date_time - vc 141 - mt - 1 _ 64. lib
libboost_date_time - vc 141 - mt - gd - 1 - 64. lib
libboost_exception - vc 141 - mt - 1 _ 64. lib
libboost_exception - vc 141 - mt - gd - 1 - 64lib
libboost_fiber - vc 141 - mt - 1 _ 64. lib
libboost_fiber - vc 141 - mt - gd - 1 - 64lib
libboost_filesystem-vc 141-mt-1 _ 64. lib
libboost_filesystem-vc 141-mt-gd-1 _ 64. lib
libboost_graph - vc 141 - mt - 1 _ 64. lib
libboost_graph - vc 141 - mt - gd - 1 - 64. lib
libboost_graph_parallel-vc 141 - mt - 1 _ 64. lib
libboost_graph_parallel-vc 141-mt-gd-1 _ 64. lib
libboost_iostreams -vc 141 - mt - 1 _ 64. lib
libboost_iostreams - vc 141 - mt - gd - 1 - 64. lib
libboost_locale - vc 141 - mt - 1 _ 64. lib
libboost_locale - vc 141 - mt - gd - 1 - 64. lib
libboost_log-vc 141 - mt - 1 - 64. lib
libboost_log - vc 141 - mt - gd - 1 - 64. lib
libboost_log_setup - vc 141 - mt - 1 _ 64. lib
libboost_log_setup - vc 141 - mt - gd - 1 - 64. lib
libboost_math_c99-vc141-MT-1_64.lib
libboost_math_c99 - vc 141 - mt - gd - 1 - 64lib
libboost_math_c99f - vc 141 - mt - 1 _ 64. lib
libboost_math_c99f - vc 141 - mt - gd - 1 - 64lib
libboost_math_c99l-vc141-MT-1_64.lib
libboost_math_c99l-vc141-MT-GD-1_64.lib
libboost_math_tr 1 - vc 141 - mt - 1 _ 64. lib
libboost_math_tr 1 - vc 141 - mt - gd - 1 - 64lib
libboost_math_tr 1 f - vc 141 - mt - 1 _ 64. lib
libboost_math_tr 1 f - vc 141 - mt - gd - 1 - 64lib
libboost_math_tr 1 l - vc 141 - mt - 1 _ 64. lib
libboost_math_tr 1 l - vc 141 - mt - gd - 1 - 64lib
libboost_mpi-vc 141 - mt - 1 _ 64. lib
libboost_mpi-vc 141 - mt - gd - 1 - 64. lib
libboost_prg_exec_monitor - vc 141 - mt - 1 _ 64. lib
libboost_prg_exec_monitor - vc 141 - mt - gd - 1 _ 64. lib
libboost_program_options-vc 141 - mt - 1 _ 64. lib
libboost_program_options-vc 141 - mt - gd - 1 - 64. lib
libboost_random - vc 141 - mt - 1 _ 64. lib
libboost_random - vc 141 - mt - gd - 1 - 64lib
libboost_regex - vc 141 - mt - 1 _ 64. lib
libboost_regex - vc 141 - mt - gd - 1 - 64lib
libboost_serialization - vc 141 - mt - 1 _ 64. lib
libboost_serialization - vc 141 - mt - gd - 1 - 64. lib
libboost_signals - vc 141 - mt - 1 _ 64. lib
libboost_signals - vc 141 - mt - gd - 1 - 64lib
libboost_system - vc 141 - mt - 1 _ 64. lib
libboost_system - vc 141 - mt - gd - 1 - 64lib
libboost_test_exec_monitor - vc 141 - mt - 1 _ 64. lib
libboost_test_exec_monitor - vc 141 - mt - gd - 1 - 64lib
libboost_thread-vc 141 - mt - 1 _ 64. lib
libboost_thread-vc 141 - mt - gd - 1 - 64. lib
libboost_timer - vc 141 - mt - 1 _ 64. lib
libboost_timer - vc 141 - mt - gd - 1 - 64lib
libboost_type_erasure - vc 141 - mt - 1 _ 64. lib
libboost_type_erasure - vc 141 - mt - gd - 1 - 64. lib
libboost_unit_test_framework - vc 141 - mt - 1 _ 64. lib
libboost_unit_test_framework - vc 141 - mt - gd - 1 _ 64. lib
libboost_wave - vc 141 - mt - 1 _ 64. lib
libboost_wave - vc 141 - mt - gd - 1 - 64lib
libboost_wserialization - vc 141 - mt - 1 _ 64. lib
libboost_wserialization-vc 141 - mt - gd - 1 - 64. lib

将路径设置为环境变量。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值