按照
https://blog.csdn.net/pirlck/article/details/56006359
的方法,出现
Unable to load Boost.Build: could not find "boost-build.jam"
原因是
要先设置到根目录:
再进行后续操作即可。
但是,这里设置时候:
--prefix=D:\Install-Package\boost_1_59_0\x64 --build-type=complete --build-dir=build_tmp toolset=msvc-14.0 address-model=64 threading=multi runtime-link=shared install
其中runtime-link=shared,才能得到这样的后缀-mt-1_59.lib以及-mt-gd-1_59.lib,如果runtime-link=static得到的lib后缀是这样的-mt-s-1_59.lib以及-mt-sgd-1_59.lib,这里1_59是版本号的意思。
-----------------------------------------------------------------------------------
#要使用LSD_SLAM,之前的boost老是出问题:
https://blog.csdn.net/u011091739/article/details/71601521
重新编译了下,新指令为:
bjam install --toolset=msvc-14.0 address-model=64 --without-python --prefix=D:\boost_1_59_0\x64 --build-type=complete --build-dir=build_tmp threading=multi debug release
今天20181115我的工程中运行时库是MTD并且是32位的,我需要重新安装,我的语句是:
bjam install --toolset=msvc-14.0 address-model=32 --without-python --prefix=D:\boost_1_59_0\x32 --build-type=complete --build-dir=build_tmp_x32 link=static runtime-link=static threading=multi debug release
有用的链接:
http://www.cnblogs.com/zhcncn/p/3950477.html
http://www.cnblogs.com/dementia/archive/2009/04/10/1433217.html
https://blog.csdn.net/u012348774/article/details/75195780