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

后端 未结 2 1059
我在风中等你
我在风中等你 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.

提交回复
热议问题