CMake Error at /usr/local/share/pcl-1.12/PCLConfig.cmake:59 (message): PCL can not be found on this machine Call Stack (most recent call first): /usr/local/share/pcl-1.12/PCLConfig.cmake:435 (pcl_report_not_found) CMakeLists.txt:4 (find_package)
这个错误是由于在这台机器上找不到 PCL(点云库)所致。在调用堆栈中,最近的调用是在 CMakeLists.txt 文件的第四行中使用 find_package 命令。PCLConfig.cmake 文件的第 59 行显示了错误消息,提示 PCL 未在该机器上找到。
-- Could NOT find ClangFormat (missing: ClangFormat_EXECUTABLE ClangFormat_VERSION) (Required is at least version "14") -- Using CPU native flags for SSE optimization: -msse4.2 -mfpmath=sse -march=native -- Found OpenMP, spec date 201511 -- Eigen found (include: /usr/include/eigen3, version: 3.3.4) -- FLANN found (include: /usr/include, lib: /usr/lib/x86_64-linux-gnu/libflann_cpp.so) -- OpenNI found (version: 1.5.4.0, include: /usr/include/ni, lib: /usr/lib/libOpenNI.so;libusb::libusb) -- OpenNI2 found (version: 2.2.0.33, include: /usr/include/openni2, lib: /usr/lib/libOpenNI2.so;libusb::libusb) -- RealSense SDK 2 found (include: /usr/include, lib: realsense2::realsense2, version: 2.53.1) -- Checking for module 'metslib' -- No package 'metslib' found -- QHULL found (include: /usr/include, lib: /usr/lib/x86_64-linux-gnu/libqhull_r.so) -- The imported target "vtkRenderingPythonTkWidgets" references the file "/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/cmake/vtk-6.3/VTKTargets.cmake" but not all the files it references. -- The imported target "vtk" references the file "/usr/bin/vtk" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/cmake/vtk-6.3/VTKTargets.cmake" but not all the files it references. CMake Error at cmake/pcl_find_vtk.cmake:96 (message): Missing vtk modules: vtkRenderingOpenGL2;vtkRenderingContextOpenGL2 Call Stack (most recent call first): CMakeLists.txt:393 (include) -- Configuring incomplete, errors occurred! See also "/home/amovlab-z410/pcl/release/CMakeFiles/CMakeOutput.log". See also "/home/amovlab-z410/pcl/release/CMakeFiles/CMakeError.log".
这个错误表示在构建 PCL 时,CMake 找不到 VTK 库的某些模块,具体是 vtkRenderingOpenGL2
和 vtkRenderingContextOpenGL2
。这可能是由于 VTK 没有正确安装或安装位置不正确导致的。你可以尝试重新安装 VTK 并确保路径正确,或者在 CMake 的配置中指定 VTK 库的路径。你也可以检查 VTKTargets.cmake
文件是否存在,并且文件路径是否正确。另外,CMake 还需要安装 ClangFormat 14 或更高版本,你可以在系统上安装该版本的 ClangFormat 或在 CMake 的配置中禁用 ClangFormat。如果问题仍然存在,请提供更多的详细信息,以便我能够更好地帮助你解决问题。
CMake Error at /opt/ros/kinetic/share/pcl_conversions/cmake/pcl_conversionsConfig.cmake:113 (message)
引用:CMake Error at/opt/ros/melodic/share/catkin/cmake/safe_execute_process.cmake:11等 。 引用[2]:Cmake Error at builders/vpx.cmake:89 Cmake Error at builders/vpx.cmake:88 Cmake Error at builders/vpx.cmake:87 Cmake Error at builders/vpx.cmake:77 file not found WORK/desktop/cmake/windowsenv_libpath...。 引用:文章目录 问题如下:产生问题分析: 解决办法:效果: 问题如下: 产生问题分析: 由于之前eigen库与ceres库的冲突,进行了两个库的重装并删除了相关文件夹,导致与系统原文件信息不匹配,详细参考:/opt/ros/noetic/share/pcl_ros/cmake/pcl_rosConfig.cmake文件,下图下图的96行,阴影行。 观察发现有路经:/usr/include/eigen3,而我系统此时该路径下不存在eigen3文件夹。 解决办法: 将路径:/usr/local/include/文件夹下的eigen3,复制到路径/usr/include下 输入指令: sudo cp -r /usr/local/include/eigen3 /usr/include 即,该路径下存在eigen3文件了: 效果: 问题解决。 参考博客: ROSERROR : CMake Error at /opt/ros/melodic/share/cv_bridge/cmake/cv_bridgeConfig.cmake:113 (message)。
CMake Error at /opt/ros/kinetic/share/pcl_conversions/cmake/pcl_conversionsConfig.cmake:113 (message) 是CMake在编译过程中遇到的错误。该错误可能是由于库文件或路径的问题导致的。具体地,CMake在寻找pcl_conversionsConfig.cmake文件时发生了错误,可能是由于该文件不存在或路径错误导致的。
解决此问题的方法是检查pcl_conversionsConfig.cmake文件的位置和路径是否正确,确保该文件存在于正确的位置。如果文件确实不存在,您可以尝试重新安装pcl_conversions库或从其他来源获取正确的文件。
另外,您还可以尝试更新您的CMake版本,以确保它与当前使用的ROS版本兼容。还可以检查您的系统环境变量和依赖项是否正确设置。