编译过程中出现如下错误:Failed to find Ceres - Found Eigen dependency, but the version of Eigen found (3.4.0) does not exactly match the version of Eigen Ceres was compiled with (3.3.4).
问题原因:安装版本与CMakeList文件所需版本不匹配
问题解决:参考链接 解决方法
即将如下代码添加到/usr/local/lib/cmake/Ceres/CeresConfig.cmake中
set(EIGEN_INCLUDE_DIR "/usr/local/include/eigen3") #添加此行
set(CERES_EIGEN_VERSION 3.4.0) #添加此行,版本号与你安装的对应
添加位置如下图所示