SLMaster icon indicating copy to clipboard operation
SLMaster copied to clipboard

使用vs编译CMaKeLists.txt文件报错

Open zhangp-dev opened this issue 2 months ago • 2 comments

CMake Error at src/algorithm/CMakeLists.txt:7 (find_package): 1> [CMake] By not providing "FindPCL.cmake" in CMAKE_MODULE_PATH this project has 1> [CMake] asked CMake to find a package configuration file provided by "PCL", but 1> [CMake] CMake did not find one. 1> [CMake] 1> [CMake] Could not find a package configuration file provided by "PCL" with any of 1> [CMake] the following names: 1> [CMake] 1> [CMake] PCLConfig.cmake 1> [CMake] pcl-config.cmake 1> [CMake] 1> [CMake] Add the installation prefix of "PCL" to CMAKE_PREFIX_PATH or set "PCL_DIR" 1> [CMake] to a directory containing one of the above files. If "PCL" provides a 1> [CMake] separate development package or SDK, be sure it has been installed. 1> [CMake] 1> [CMake] 1> [CMake] -- Configuring incomplete, errors occurred! 1> [CMake] See also "E:/SLmaster source file/SLMaster/out/build/CMakeFiles/CMakeOutput.log".

zhangp-dev avatar Apr 23 '24 07:04 zhangp-dev

环境没配好,请在系统环境变量中添加变量名PCL_DIR,路径指向PCL的.cmake文件

Practice3DVision avatar Apr 23 '24 08:04 Practice3DVision

CMake Error at src/algorithm/CMakeLists.txt:7 (find_package): 1> [CMake] By not providing "FindPCL.cmake" in CMAKE_MODULE_PATH this project has 1> [CMake] asked CMake to find a package configuration file provided by "PCL", but 1> [CMake] CMake did not find one. 1> [CMake] 1> [CMake] Could not find a package configuration file provided by "PCL" with any of 1> [CMake] the following names: 1> [CMake] 1> [CMake] PCLConfig.cmake 1> [CMake] pcl-config.cmake 1> [CMake] 1> [CMake] Add the installation prefix of "PCL" to CMAKE_PREFIX_PATH or set "PCL_DIR" 1> [CMake] to a directory containing one of the above files. If "PCL" provides a 1> [CMake] separate development package or SDK, be sure it has been installed. 1> [CMake] 1> [CMake] 1> [CMake] -- Configuring incomplete, errors occurred!我添加了环境变量 还是报这个错误

zhangp-dev avatar Apr 23 '24 12:04 zhangp-dev