/usr/bin/ld: 找不到 -lEigen3::Eigen
解决方法:find_package(Eigen3 REQUIRED)为list(APPEND CMAKE_INCLUDE_PATH "/usr/local/include") find_package (Eigen3 3.3 REQUIRED NO_MODULE)
参考:https://github.com/ducha-aiki/pymagsac/issues/4
- fatal error: curses.h: 没有那个文件或目录
解决方法: sudo apt-get install libncurses5-dev.
参考:https://blog.csdn.net/ernest68028/article/details/79293523
- error: ‘slots_reference’ was not declared in this scope
解决方法: 在CMakeLists.txt中添加 set(CMAKE_CXX_STANDARD 14)
参考:https://github.com/UZ-SLAMLab/ORB_SLAM3/issues/387
- 错误:“GL_SHADER_STORAGE_BUFFER”未在此范围内声明
解决方法:
sudo vim /usr/local/include/pangolin/gl/glplatform.h
#goto line#58
#replace "GL/glew.h" with "/usr/include/GL/glew.h"
参考:https://github.com/stevenlovegrove/Pangolin/issues/268
https://blog.csdn.net/hust_sheng/article/details/80459160