PCL and ROS Indigo: No such file or directory [closed]
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...
Why does the package not find the header?
I solved this by adding find_package(PCL 1.8 REQUIRED) and link_directories(${PCL_LIBRARY_DIRS}) to CMakeLists.txt