I'm trying to compile a package that uses ROS Indigo and PCL trunk. This is the error:
/home/andreas/baxter_ws/src/object_grasping/src/lccp_clustering.cpp:58:48: fatal error: pcl/segmentation/lccp_segmentation.h: No such file or directory
#include <pcl/segmentation/lccp_segmentation.h>
The header lccp_segmentation.h is in: /usr/local/include/pcl-1.8/pcl/segmentation/
The CMakeLists.txt has this: http://wiki.ros.org/hydro/Migration#PCL and the package.xml has this: https://github.com/ros-perception/pcl_conversions/commit/a868e1a16e442c135f66a9738619d290bc4ee896
Why does the package not find the header?
Originally posted by atp on ROS Answers with karma: 529 on 2015-07-14
Post score: 0
Original comments
Comment by atp on 2015-07-14:
I solved this by adding find_package(PCL 1.8 REQUIRED) and link_directories(${PCL_LIBRARY_DIRS}) to CMakeLists.txt