Locations PCLConfig.cmake and pcl-config.cmake files for PCL library

后端 未结 2 1037
我在风中等你
我在风中等你 2021-01-21 01:58

I installed PCL using the following commands.

sudo add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/pcl
sudo apt-get update
sudo apt-get install libpcl-a         


        
相关标签:
2条回答
  • 2021-01-21 02:45

    you should specify the PCL dir for the CMake to find it.

    In a terminal run :

    $ locate PCLConfig.cmake
    

    Then, add the found folder (without the filename) to your CMakeLists like the following :

    set(PCL_DIR "/found/folder/")
    #change X.x to whatever version yo installed
    

    Sidenote : /usr/share/pcl-x.x is the usual path to your pcl folder.

    0 讨论(0)
  • 2021-01-21 02:46

    I had the same problem when I followed the steps mentioned on the website http://www.pointclouds.org/downloads/linux.html, for Ubuntu 18.

    You simply need to run sudo apt install libpcl-dev

    as bionic is not mentioned in the distributions (http://ppa.launchpad.net/v-launchpad-jochen-sprickerhof-de/pcl/ubuntu/dists/)

    0 讨论(0)
提交回复
热议问题