cmake Ceres 配置错误:Found Eigen dependency, but the version of Eigen found () does not exactly match the version of Eigen Ceres was compiled with (3.4.0)
Ceres 编译错误: Found Eigen dependency, but the version of Eigen found () does not exactly match the version of Eigen Ceres was compiled with (3.4.0)
博主在学习高博的《视觉SLAM14讲》时 cmake 配置过程中遇到了以下问题:

查看 cmake 的 Ceres 配置文件 /usr/local/lib/cmake/Ceres/CeresConfig.cmake
处与 Eigen 有关的部分
1 |
|
发现可能是此处 Eigen3_VERSION
这一与 Eigen 版本相关的变量并没有定义,于是尝试对配置文件添加以下内容进行修改
1 |
|

即可成功进行 cmake 配置。
Reference
cmake Ceres 配置错误:Found Eigen dependency, but the version of Eigen found () does not exactly match the version of Eigen Ceres was compiled with (3.4.0)
https://blog.iks-ran.com/2025/05/01/ceres_eigen_version_error/