Ask Your Question
0

PCL and ROS Indigo: No such file or directory [closed]

asked 2015-07-14 12:23:00 -0500

atp gravatar image

updated 2015-07-14 12:24:27 -0500

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?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by atp
close date 2015-07-14 19:14:45.483085

Comments

I solved this by adding find_package(PCL 1.8 REQUIRED) and link_directories(${PCL_LIBRARY_DIRS}) to CMakeLists.txt

atp gravatar image atp  ( 2015-07-14 19:14:15 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-07-14 15:19:23 -0500

William gravatar image

It's probably not getting the correct include path, since pcl-1.8 is in the path of the header you need. You'll need to ensure that the package you're building is finding pcl 1.8 rather than 1.7 or some other version and then ensure that it's passing the correct include paths to the building of your library/executable. It might be useful to run with VERBOSE=1 to see what arguments are being passed to c++.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-07-14 12:23:00 -0500

Seen: 1,303 times

Last updated: Jul 14 '15