主要参考:https://blog.csdn.net/weixin_39718903/article/details/80856241
问题描述:安装ORB_SLAM2时编译“./build_ros.sh”时出现报错。
遇到的问题如下:
1 --libboost_filesystem
$locate boost_system
//查找到目录
/usr/lib/x86_64-linux-gnu/libboost_system.a
/usr/lib/x86_64-linux-gnu/libboost_system.so
/usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0
/usr/local/MATLAB/R2017a/bin/glnxa64/libboost_system.so.1.56.0
$locate boost_filesystem
//查找到目录
/usr/lib/x86_64-linux-gnu/libboost_filesystem.a
/usr/lib/x86_64-linux-gnu/libboost_filesystem.so
/usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0
/usr/local/MATLAB/R2017a/bin/glnxa64/libboost_filesystem.so.1.56.0
将libboost_system.so , libboost_system.so.1.58.0与libboost_filesystem.so , libboost_filesystem.so.1.58.0复制到ORB_SLAM2/lib //不是Example ROS里的lib
2 target Cmakelists修改
/usr/lib/x86_64-linux-gnu/libboost_system.so: error adding symbols: DSO missing from command line
解决办法:在Examples/ROS/ORB_SLAM2/Cmakelist.txt 的文件后面加入两句话:
target_link_libraries(Stereo boost_system boost_filesystem)
target_link_libraries(RGBD boost_system boost_filesystem)
3 ros下的iai_kinect2 和libfreenect2的bridge问题
usb接口调换
4 常见错误
https://blog.csdn.net/u014709760/article/details/85253525
参考:
https://www.cnblogs.com/bigzhao/p/6635770.html