1. 程式人生 > >[Study notes] To programing RGBD-SLAM together from Gaoxiang

[Study notes] To programing RGBD-SLAM together from Gaoxiang

Solve CMake Error in CMakeLists.txt (FIND_PAKAGE):


CMake Error at src/CMakeLists.txt:5 (FIND_PACKAGE):
  By not providing "FindPCL.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "PCL", but
  CMake did not find one.

  Could not find a package configuration file provided by "PCL" with any of
  the following names:

    PCLConfig.cmake
    pcl-config.cmake

  Add the installation prefix of "PCL" to CMAKE_PREFIX_PATH or set "PCL_DIR"
  to a directory containing one of the above files.  If "PCL" provides a
  separate development package or SDK, be sure it has been installed.


-- Configuring incomplete, errors occurred!
  • To help cmake find PCLConfig.cmake adding this line if you have installed ROS Kinetic:

set(PCL_DIR "/usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake")

before find_package(PCL 1.3 REQUIRED COMPONENTS common io)

Or run loacate PCLConfig.cmake.


References:
PCL Documents: Using PCL in your own project