HKUST-Aerial-Robotics / Fast-Planner

A Robust and Efficient Trajectory Planner for Quadrotors
GNU General Public License v3.0
2.48k stars 665 forks source link

就差一点就能编译了。。。 #169

Open chan-yuu opened 9 months ago

chan-yuu commented 9 months ago

/usr/bin/ld: CMakeFiles/random_forest.dir/src/random_forest_sensing.cpp.o: in function RandomMapGenerate()': /home/cyun/fast_ws/src/Fast-Planner/uav_simulator/map_generator/src/random_forest_sensing.cpp:169: undefined reference topcl::KdTreeFLANN<pcl::PointXYZ, flann::L2_Simple >::setInputCloud(boost::shared_ptr<pcl::PointCloud const> const&, boost::shared_ptr<std::vector<int, std::allocator > const> const&)' /usr/bin/ld: CMakeFiles/random_forest.dir/src/random_forest_sensing.cpp.o:(.data.rel.ro._ZTVN3pcl11KdTreeFLANNINS_8PointXYZEN5flann9L2_SimpleIfEEEE[_ZTVN3pcl11KdTreeFLANNINS_8PointXYZEN5flann9L2_SimpleIfEEEE]+0x10): undefined reference to pcl::KdTreeFLANN<pcl::PointXYZ, flann::L2_Simple<float> >::setInputCloud(boost::shared_ptr<pcl::PointCloud<pcl::PointXYZ> const> const&, boost::shared_ptr<std::vector<int, std::allocator<int> > const> const&)' /usr/bin/ld: CMakeFiles/random_forest.dir/src/random_forest_sensing.cpp.o:(.data.rel.ro._ZTVN3pcl11KdTreeFLANNINS_8PointXYZEN5flann9L2_SimpleIfEEEE[_ZTVN3pcl11KdTreeFLANNINS_8PointXYZEN5flann9L2_SimpleIfEEEE]+0x28): undefined reference topcl::KdTreeFLANN<pcl::PointXYZ, flann::L2_Simple >::nearestKSearch(pcl::PointXYZ const&, int, std::vector<int, std::allocator >&, std::vector<float, std::allocator >&) const' collect2: error: ld returned 1 exit status make[2]: [Fast-Planner/uav_simulator/map_generator/CMakeFiles/random_forest.dir/build.make:288:/home/cyun/fast_ws/devel/lib/map_generator/random_forest] 错误 1 make[1]: [CMakeFiles/Makefile2:2690:Fast-Planner/uav_simulator/map_generator/CMakeFiles/random_forest.dir/all] 错误 2 make: *** [Makefile:146:all] 错误 2 Invoking "make -j32 -l32" failed