Ubunut:安装g2o

1. g2o下载:

https://github.com/RainerKuemmerle/g2o.git

2. 首先按照github对依赖进行更新:

sudo apt-get install libeigen3-dev
sudo apt-get install libsuitesparse-dev
sudo apt-get install qtdeclarative5-dev
sudo apt-get install qt5-qmake
sudo apt-get install libqglviewer-dev

3. 进行编译,大约十几分钟

mkdir build
cd build
cmake …
make

4. 安装

sudo make install

 

 

参考文章:

1. https://blog.csdn.net/slzlincent/article/details/86555166

 

 

 

 

 

 

你可能感兴趣的:(Ubuntu)