caochao39 / tare_planner

TARE Exploration Planner for Ground Vehicles
432 stars 102 forks source link

catkin_make error #11

Open YouShaoze opened 2 years ago

YouShaoze commented 2 years ago

[ 98%] Linking CXX executable /home/ysz/tare/devel/lib/tare_planner/tare_planner_node /home/ysz/tare/devel/lib/libplanning_env.a(planning_env.cpp.o):(.data.rel.ro._ZTVN3pcl6search6SearchINS_9PointXYZIEEE[_ZTVN3pcl6search6SearchINS_9PointXYZIEEE]+0x20): undefined reference to pcl::search::Search&lt;pcl::PointXYZI&gt;::getName() const' /home/ysz/tare/devel/lib/libplanning_env.a(planning_env.cpp.o):(.data.rel.ro._ZTVN3pcl6search6KdTreeINS_9PointXYZIENS_11KdTreeFLANNIS2_N5flann9L2_SimpleIfEEEEEE[_ZTVN3pcl6search6KdTreeINS_9PointXYZIENS_11KdTreeFLANNIS2_N5flann9L2_SimpleIfEEEEEE]+0x20): undefined reference topcl::search::Search<pcl::PointXYZI>::getName() const' collect2: error: ld returned 1 exit status tare_planner/src/tare_planner/CMakeFiles/tare_planner_node.dir/build.make:713: recipe for target '/home/ysz/tare/devel/lib/tare_planner/tare_planner_node' failed make[2]: [/home/ysz/tare/devel/lib/tare_planner/tare_planner_node] Error 1 CMakeFiles/Makefile2:4273: recipe for target 'tare_planner/src/tare_planner/CMakeFiles/tare_planner_node.dir/all' failed make[1]: [tare_planner/src/tare_planner/CMakeFiles/tare_planner_node.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j8 -l8" failed

The above error occurred when I compiled TARE in vmware. Strangely, this did not happen on another computer (and vmware), where the PCL library is the default version 1.8.

junhengmao commented 10 months ago

Hi! I'm having the same problem as you. Have you solved the problem yet? Thanks!