ubuntu 编译PCL 库

 

1/ 新建build 文件夹,  cmakelists.txt 文件与build 同级目录.

问题: 1.找不到 PCLConfig.cmake 

Could not find module FindOpenCV.cmake or a configuration file for package
  OpenCV.

  Adjust CMAKE_MODULE_PATH to find FindOpenCV.cmake or set OpenCV_DIR to the
  directory containing a CMake configuration file for OpenCV.  The file will
  have one of the following names:

    OpenCVConfig.cmake
    opencv-config.cmake

find -name 找不到 PCLConfig.cmake--> 找到文件位置, 然后拷贝到cmakelists.txt 同级目录, 

makelists.txt 中添加:set(CMAKE_MODULE_PATH $ {CMAKE_MODULE_PATH} $ {CMAKE_SOURCE_DIR})

其它类似的找不到xxxConfig.cmake文件的都可以这么做. 比如找不到 FindEigen.cmake 等.

之前试了一下 set (PCL_DIR "目录xxxConfig.cmake") 不行, 不知道为啥.

 

2/  这个问题遇到好几次:

-- looking for PCL_COMMON
-- Could NOT find PCL_COMMON (missing: PCL_COMMON_INCLUDE_DIR) 
-- looking for PCL_KDTREE
-- Could NOT find PCL_KDTREE (missing: PCL_KDTREE_INCLUDE_DIR) 
-- looking for PCL_OCTREE

 

 

你可能感兴趣的:(ubuntu 编译PCL 库)