【发布时间】:2017-08-28 15:12:10
【问题描述】:
我在 ubuntu 中安装 ceres 并使用http://ceres-solver.org/installation.html Linux 部分中的所有命令行
sudo apt-get install libgoogle-glog-dev
一直到
进行安装
似乎我已经安装了 ceres 求解器,它的依赖没有问题。
但是当我尝试运行测试文件时
bin/simple_bundle_adjuster ../ceres-solver-1.12.0/data/problem-16-22106-pre.txt
表明
无法打开文件 ../ceres-solver-1.9.0/data/problem-16-22106-pre.tx
然后我尝试在教程使用命令中编译 helloworld
g++ -I/usr/include/eigen3 helloworld.cpp -o helloworld
它给我带来了很多问题。
未定义对google::InitGoogleLogging(char const*)'
helloworld.cpp:(.text+0x104): undefined reference toceres::Problem::Problem()' 的引用
helloworld.cpp:(.text+0x155): undefined reference to `ceres::Problem::AddResidualBlock(ceres::CostFunction*, ceres::LossFunction*, double*)'
我没有一一列举。但似乎它根本找不到关于谷歌的东西。
希望你能帮我!!
它给我带来了一大堆问题。
【问题讨论】:
标签: installation glog ceres-solver