使用的环境是ubuntu20.04
问题1.安装g2o没有问题,不过在编译整个项目工程时候报错:
”openmp_mutex.h: 30:10: fatal error: g2o/config.h: No such file or directory“:
解决办法:
只需要将/thirdparty/g2o/build/g2o下的config.h放到/thirdparty/g2o下:
问题2. No rule to make target ’gmock’,needed by '../bin/test_preintegration' . stop
src/ch4/CMakeFiles/test_preintegration.dir/all] Error 2:
解决办法:将/ch4/CmakeList.txt文件内容修改如下:
修改/ch5/CMakeList.txt 内容为:
参考博文:
https://blog.csdn.net/ht_lf/article/details/134185779