ubuntu16.04安装编译ORB-SLAM2
一开始按照http://www.pianshen.com/article/1673147894/
进行的安装,运行
git clonehttps://github.com/raulmur/ORB_SLAM2.git ORB_SLAM2
cd ORB_SLAM2
chmod +x build.sh
./build.sh
试了几次,总是报错,错误如下:
*** No rule to make target '/opt/ros/kinetic/lib/librealsense.so'
在查遍所有资料后都失败后,无奈对照orb-slam2-master文件中README.md的提示,将所有需要的库及其版本要求对照了一遍,发现以前安装的pangolin竟然没有安装成功,找到问题点,重新安装pangolin,按照
https://blog.youkuaiyun.com/qq_35042020/article/details/86648566
https://blog.youkuaiyun.com/zzu_seu/article/details/84866858
进行的安装,但总是出现一些问题,如下,不过没有影响程序编译完。
In file included from /home/qin/Pangolin-master/include/pangolin/gl/gl.h:273:0,
from /home/qin/Pangolin-master/src/geometry/geometry_ply.cpp:37:
/home/qin/Pangolin-master/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlBufferData::Upload(const GLvoid*, GLsizeiptr, GLintptr)’:
/home/qin/Pangolin-master/include/pangolin/gl/gl.hpp:717:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compa