Ubuntu16.04安装g2o

夙愿已清 提交于 2020-03-04 19:33:24

##安装g2o
https://github.com/RainerKuemmerle/g2o/

1.依赖项:
sudo apt-get install cmake libeigen3-dev libsuitesparse-dev qtdeclarative5-dev qt5-qmake libqglviewer-dev

2.下载g2o并安装
git clone https://github.com/RainerKuemmerle/g2o/

cd g2o
mkdir build
cd build
cmake ../
make
sudo make install

link.https://blog.csdn.net/heyijia0327/article/details/47813405 下载这个g2o测试demo,并根据https://github.com/RainerKuemmerle/g2o/blob/master/g2o/examples/simple_optimize/simple_optimize.cpp 作以相应的更新。

运行g2o_test报错:
/home/zhkai/code/g2o_test/bin/g2o_test: error while loading shared libraries: libg2o_core.so: cannot open shared object file: No such file or directory

解决办法:
sudo ldconfig

参考文档 https://blog.csdn.net/heyijia0327/article/details/47813405

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!