Problem with PCL using ROS indigo
ROS indigo, pcl-1.7
I try to use voxel grid filter with the line:
pcl::VoxelGrid<pcl::pclpointcloud2> sor;
But it throws errors when linking the libraries like the following:
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libpcl_filters.so: undefined reference to `pcl::search::KdTree<pcl::pointxyzrgbnormal, pcl::kdtreeflann<pcl::pointxyzrgbnormal,="" flann::l2_simple<float=""> > >::KdTree(bool)'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libpcl_filters.so: undefined reference to `pcl::PCLBase<pcl::cppfsignature>::setIndices(unsigned long, unsigned long, unsigned long, unsigned long)'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libpcl_filters.so: undefined reference to `pcl::search::KdTree<pcl::pointxyz, pcl::kdtreeflann<pcl::pointxyz,="" flann::l2_simple<float=""> > >::KdTree(bool)'
When I don't use voxel grid filter, the program compiles without problems.
Can someone tell me why it might be?
Please add your CMakeLists to your question.