【发布时间】:2019-11-08 16:54:39
【问题描述】:
我是 CMake 新手,所以我总是更喜欢使用 CMake GUI。
我实际上是在设置点云库 (PCL)。但是,它需要一些其他依赖库,其中之一是 FLANN -> Git Link FLANN
到目前为止我所做的是:
- 从链接下载源:Git Link FLANN
- 创建了一个build目录
-
设置 CMake SOURCE 代码路径 -
C:/PCL/flann-master设置 CMake 构建二进制文件路径 -
C:/PCL/flann-master/build - 检查了分组和高级选项
- 配置
它给出了以下错误:
CMake Warning (dev) at CMakeLists.txt:17 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "MSVC" will no longer be dereferenced when the policy
is set to NEW. Since the policy is not set the OLD behavior will be used.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at CMakeLists.txt:21 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "MSVC" will no longer be dereferenced when the policy
is set to NEW. Since the policy is not set the OLD behavior will be used.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at C:/Program Files/CMake/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.13/Modules/FindPkgConfig.cmake:39 (find_package_handle_standard_args)
CMakeLists.txt:149 (find_package)
我的问题是: 我需要做什么才能构建它?
【问题讨论】:
标签: c++ visual-studio cmake point-cloud-library flann