原来安装ros melodic libpcl-dev 1.8
自行下载安装PCL-1.11库后
总是出现undefined reference to 'pcl::KdTreeFLANN<pcl::PointXYZ, flann::L2_Simple<float> >::radiusSearch(pcl::PointXYZ const&, double, std::vector<int, std::allocator<int> >&, std::vector<float, std::allocator<float> >&, unsigned int) const'
collect2: ld returned 1 exit status
卸载PCL-1.11后 catkin_make仍然出现错误No rule to make target '/usr/local/lib/libpcl_common.so'
明显路径是/usr/local/lib/ 这是受自行安装PCL库的影响
重新卸载安装sudo apt-get install ros-melodic-perception ros-melodic-perception-pcl ros-melodic-pcl-ros ros-melodic-pcl-conversions libpcl-dev
仍然出现第一个错误undefined reference
原因是:devel build文件夹中缓存的路径还是原来的没有及时更改,最简单的办法就是删除catkin workspace下面的devel和build后重新catkin_make