在Ubuntu18.04 安装Ceres-solver-1.14.0,make时出现了98%Built target bundle_adjuster,ecipe for target ‘examples/CMakeFiles/nist.dir/nist.cc.o’ failed 的编译错误。
试过各种方法,改变G++版本,使得G++版本更高了,或者使用ceres-solver.tar文件均发生该错误,均无法解决。
在苦恼了一天之后,采用试试看的心态,安装了ceres-solver-1.13.0版本,这下居然cmake和make都通过了。(捂脸)
方法:1、获取源码:wget ceres-solver.org/ceres-solver-1.13.0.tar.gz
2、解压:tar xvf ceres-solver-1.13.0.tar.gz
3、切换到源目录:cd ceres-solver-1.13.0
4、编译: mkdir build
cd build
cmake …
make
5、安装:sudo make install
至今不明所以,可能是版本太新,容易不兼容吧。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)