您的位置:首页 > 其它

Windows下VS2015编译64位Boost1.64

2017-12-08 15:51 471 查看
参考原帖: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 - 64。lib
libboost_fiber - vc 141 - mt - 1 _ 64. lib
libboost_fiber - vc 141 - mt - gd - 1 - 64。lib
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 - 64。lib
libboost_math_c99f - vc 141 - mt - 1 _ 64. lib
libboost_math_c99f - vc 141 - mt - gd - 1 - 64。lib
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 - 64。lib
libboost_math_tr 1 f - vc 141 - mt - 1 _ 64. lib
libboost_math_tr 1 f - vc 141 - mt - gd - 1 - 64。lib
libboost_math_tr 1 l - vc 141 - mt - 1 _ 64. lib
libboost_math_tr 1 l - vc 141 - mt - gd - 1 - 64。lib
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 - 64。lib
libboost_regex - vc 141 - mt - 1 _ 64. lib
libboost_regex - vc 141 - mt - gd - 1 - 64。lib
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 - 64。lib
libboost_system - vc 141 - mt - 1 _ 64. lib
libboost_system - vc 141 - mt - gd - 1 - 64。lib
libboost_test_exec_monitor - vc 141 - mt - 1 _ 64. lib
libboost_test_exec_monitor - vc 141 - mt - gd - 1 - 64。lib
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 - 64。lib
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 - 64。lib
libboost_wserialization - vc 141 - mt - 1 _ 64. lib
libboost_wserialization-vc 141 - mt - gd - 1 - 64. lib


将路径设置为环境变量。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  windows boost 64位