Open nss6planner opened 1 year ago
pcl库装了吗
感谢您的回复,我在ubuntu18.04安装了pcl1.11.0,也更改了CMakeLists.txt文件中的版本问题,还是会出现以上报错。
pcl库装了吗
感谢您的回复,我在ubuntu18.04安装了pcl1.11.0,也更改了CMakeLists.txt文件中的版本问题,还是会出现以上报错。
/home/airlab/ai/orb_slam2_dense_ws/src/orb_slam2_dense/Examples/ROS/orb_slam2_dense/../../../lib/libORB_SLAM2.so, may conflict with libpcl_common.so.1.8 这句话可能是因为没有删除我原先编译出来的.so文件引起的
另外我用的是pcl1.8,不保证其他版本和orb的代码兼容
有删除我原先编译出来的.so文件引起的
感谢,我重新安装一下
c++代码中未定义引用该如何解决,具体报错:/usr/bin/ld: warning: libpcl_common.so.1.11, needed by /home/airlab/ai/orb_slam2_dense_ws/src/orb_slam2_dense/Examples/ROS/orb_slam2_dense/../../../lib/libORB_SLAM2.so, may conflict with libpcl_common.so.1.8 CMakeFiles/RGBD.dir/src/message_utils.cpp.o:在函数‘ORB_SLAM2_DENSE::MessageUtils::publishPointCloud(boost::shared_ptr<sensormsgs::Image<std::allocator > const> const&)’中:
/home/airlab/ai/orb_slam2_dense_ws/src/orb_slam2_dense/Examples/ROS/orb_slam2_dense/src/message_utils.cpp:318:对‘PointCloudMapping::getCurrentCloud(boost::shared_ptr<pcl::PointCloud >&)’未定义的引用
/home/airlab/ai/orb_slam2_dense_ws/src/orb_slam2_dense/Examples/ROS/orb_slam2_dense/src/message_utils.cpp:321:对‘PointCloudMapping::getGlobalCloud(boost::shared_ptr<pcl::PointCloud >&)’未定义的引用
collect2: error: ld returned 1 exit status
orb_slam2_dense/Examples/ROS/orb_slam2_dense/CMakeFiles/RGBD.dir/build.make:802: recipe for target '/home/airlab/ai/orb_slam2_dense_ws/devel/lib/orb_slam2_dense/RGBD' failed
make[2]: [/home/airlab/ai/orb_slam2_dense_ws/devel/lib/orb_slam2_dense/RGBD] Error 1
CMakeFiles/Makefile2:513: recipe for target 'orb_slam2_dense/Examples/ROS/orb_slam2_dense/CMakeFiles/RGBD.dir/all' failed
make[1]: [orb_slam2_dense/Examples/ROS/orb_slam2_dense/CMakeFiles/RGBD.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2