一开始是用ubuntu系统的apt install安装的ceres-solver,在make编译时报错
/usr/bin/ld: /usr/lib/libceres.so.2.0.0: undefined reference to `google::kLogSiteUninitialized'
多次重新安装、升级glog和ceres-solver并不能解决问题,又看到官网上给出的教程是从源码安装ceres-solver,因而卸载用源码安装。官网地址:Installation — Ceres Solver
但仍有问题,遂在网上找到了两个教程Ceres 1.14 在 Ubuntu 22.04 的安装 • Axi's Blog,Ubuntu22.04 安装ceres-solver,cmake编译报错有tbb_stddef.h_ubuntu22 ceres-优快云博客。虽然问题不太相似,但最后解决了。
教训是安装中出现的版本、链接问题还是在网上搜索完整的教程比较好,AI大模型生成的大多有些问题,而且基本没啥效果
而且总觉得这ubuntu22.04是不是不太支持ceres-solver。。
921

被折叠的 条评论
为什么被折叠?



