Windows下VS2015 MPI编译64位Boost1.64 Windows下VS2015编译64位Boost1.64

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
  • 1
  • 2

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

using mpi ;
  • 1

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

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

–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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72

将路径设置为环境变量。

猜你喜欢

转载自blog.csdn.net/jacke121/article/details/80278717