【发布时间】:2019-07-12 10:00:03
【问题描述】:
我正在尝试从源代码构建 PCL,但 CMake 无法找到某些库。但是,当我检查图书馆时。我知道这已经被问了很多,但我刚刚开始使用 CMake 我已经在互联网上搜索了好几天,但找不到有效的解决方案。我觉得我错过了任何帮助将不胜感激
所以我按照其他人的建议在我的 CMakeLists.txt 中写了这个
cmake_minimum_required(VERSION 3.13)
set(Boost_ADDITIONAL_VERSIONS "1.67.0")
set(BOOST_ROOT "C:/local/boost_1_67_0/boost")
set(BOOST_INCLUDEDIR "C:/local/boost_1_67_0/")
set(BOOST_LIBRARYDIR "C:/local/boost_1_67_0/lib64-msvc-14.0")
set (Boost_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.67.0)
但我仍然不断收到同样的错误:
CMake Error at C:/Program Files/CMake/share/cmake-3.13/Modules/FindBoost.cmake:2100 (message):
Unable to find the requested Boost libraries.
Boost version: 1.67.0
Boost include path: C:/local/boost_1_67_0
Could not find the following static Boost libraries:
boost_filesystem
boost_thread
boost_date_time
boost_iostreams
boost_system
Some (but not all) of the required Boost libraries were found. You may
need to install these additional Boost libraries. Alternatively, set
BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
to the location of Boost.
Call Stack (most recent call first):
cmake/pcl_find_boost.cmake:36 (find_package)
CMakeLists.txt:428 (include)
老实说,我会接受任何关于我现在可以尝试的事情的建议。如果我可以提供任何其他我没有想到的有用信息,请随时发表评论或留言。 谢谢
【问题讨论】: