本博客为实现第一版slam14讲第6章的环境;6.4 实践:g2o
1. 依赖项
sudo apt install libgt4-dev sudo apt install qt4-qmake sudo apt install libqglviewer-dev sudo apt install libsuitesparse-dev sudo apt install libcxsparse3.1.4 sudo apt install lincholmod3.0.6
sudo apt install libqglviewer-dev-qt4 //少了这一个一直报错
之后更新下依赖,删除多余的环境
2. 安装g2o
本次安装的为slam文件下3rdparty里面的g2o版本
3. 编译
mkdir build cd build cmake .. make -j4 sudo make install
参考博客
https://blog.csdn.net/qq_34341423/article/details/113504431
https://blog.csdn.net/weixin_44694952/article/details/104486634
https://blog.csdn.net/sinat_34156619/article/details/86489199