如何在 Ubuntu 18.04 上安装 PCL

如何在 Ubuntu 18.04 上安装 PCL
CMake Error at cv_utils/CMakeLists.txt:8 (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!
See also "/home/ahmad/Desktop/Layered Scene Decomposition/LayeredSceneDecomposition-master/build/CMakeFiles/CMakeOutput.log".

答案1

回答得有点晚,但可以为其他可能面临同样问题的人提供参考。

PCL 在默认的 ubuntu-18.04 包中可用,可以使用 aptitude 包管理进行安装。

sudo apt install libpcl-dev

请参阅以下 github 问题:https://github.com/PointCloudLibrary/pcl/issues/2739

答案2

前面的回答已经说了大部分内容。我想补充一点,如果你想了解有关安装的更多详细信息或仅有关 PCL 库本身的信息,你应该查看 PCL 库的官方网站。

你可以在这里找到它:

https://pointclouds.org/

并且可以在这里找到 Linux 的安装(与 OP 的问题相关):

https://pointclouds.org/downloads/#linux

一些教程可以在这里找到:

https://pcl.readthedocs.io/projects/tutorials/en/master/

相关内容