因为工作安排要接手一个已经写好的项目,编译项目的时候需要pcl点云库,需要通过源码编译然后添加到cmake的方式,但是编译pcl就需要用到flann,编译flann又需要用到pkg-config,但是我按照网上的教程安装pkg-config后发现这个cmake还是要我去添加pkg-config的文件,但是他给的指定路径我电脑上并不存在,他要的文件我在安装后的pkg-config文件夹中也找不到,求问这种情况要怎么解决,或者有没有其他方法来直接编译pcl库?
问题代码:
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.
Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE)
Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
CMake Warning at CMakeLists.txt:120 (message):
gtest library not found, some tests will not be run
CMake Error at H:/CMake/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Reason given by package: The command
"C:/Strawberry/perl/bin/pkg-config" --version
failed with output
Call Stack (most recent call first):
H:/CMake/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
H:/CMake/share/cmake-3.17/Modules/FindPkgConfig.cmake:59 (find_package_handle_standard_args)
CMakeLists.txt:149 (find_package)