Wednesday, February 26, 2014

Kdtree headers in PCL

Error

  /usr/bin/ld: skipping incompatible /usr/lib/Lib/libOpenNI.so when searching for -lOpenNI
  CMakeFiles/plane_extraction.dir/src/plane_extraction.o:(.rodata._ZTVN3pcl11KdTreeFLANNINS_8PointXYZEN5flann9L2_SimpleIfEEEE[vtable for pcl::KdTreeFLANN >]+0x18): undefined reference to `pcl::KdTreeFLANN >::nearestKSearch(pcl::PointXYZ const&, int, std::vector >&, std::vector >&)'
  CMakeFiles/plane_extraction.dir/src/plane_extraction.o:(.rodata._ZTVN3pcl11KdTreeFLANNINS_8PointXYZEN5flann9L2_SimpleIfEEEE[vtable for pcl::KdTreeFLANN >]+0x24): undefined reference to `pcl::KdTreeFLANN >::radiusSearch(pcl::PointXYZ const&, double, std::vector >&, std::vector >&, int) const'
  collect2: ld returned 1 exit status


Solution

Make sure you added these header files

No comments:

Post a Comment