【发布时间】:2018-09-06 19:51:48
【问题描述】:
我正在尝试使用 Visual Studio 2015 v14 x64 在 Windows 上构建 ORBSLAM2。 ORBSLAM2 的这个特定分支依赖于 C/C++ Boost 库。
到目前为止,我已经执行了以下步骤:
A.) 我下载并构建了 Boost 库,如 here 所述:
$ bootstrap.bat
$ b2 link=static runtime-link=static release stage
$ bjam install --toolset=msvc variant=release link=static threading=multi runtime-link=static
B.) 然后我为项目配置了以下属性:
项目属性 -> C/C++ -> 常规 -> 附加包含目录
D:\ORB_SLAM2\Thirdparty\boost_1_64_0\
项目属性->链接器->输入->附加依赖
D:\ORB_SLAM2\Thirdparty\boost_1_64_0\stage\lib\
我在构建时收到以下链接器错误:
1>------ Rebuild All started: Project: ZERO_CHECK, Configuration: Release x64 ------
1> Checking Build System
1> CMake does not need to re-run because D:/ORB_SLAM2/build/CMakeFiles/generate.stamp is up-to-date.
2>------ Rebuild All started: Project: ORB_SLAM2, Configuration: Release x64 ------
2> Building Custom Rule D:/ORB_SLAM2/CMakeLists.txt
2> CMake does not need to re-run because D:/ORB_SLAM2/build/CMakeFiles/generate.stamp is up-to-date.
2> System.cc
2> Tracking.cc
2> LocalMapping.cc
2> LoopClosing.cc
2> ORBextractor.cc
...
...
...
2> Viewer.cc
2> Generating Code...
2> ORB_SLAM2.vcxproj -> D:\ORB_SLAM2\build\Release\ORB_SLAM2.lib
3>------ Rebuild All started: Project: mono_euroc, Configuration: Release x64 ------
3> mono_euroc.cc
3>LINK : fatal error LNK1181: cannot open input file 'D:\ORB_SLAM2\Thirdparty\boost_1_64_0\stage\lib\.obj'
========== Rebuild All: 2 succeeded, 1 failed, 0 skipped ==========
奇怪的是,链接器只寻找.obj,没有涉及文件名。知道问题出在哪里吗?
【问题讨论】:
标签: visual-studio boost visual-studio-2015