无效的mex文件:未定义的符号:cholmod_camd

时间:2017-08-07 12:10:58

标签: linux matlab mex ceres-solver

如何解决这个问题?我在c ++文件中看到没有cholmod_camd相关的头文件我试图使用mex。

Invalid MEX-file '/home/mpelang/Desktop/APAPstitch/Image Stitching with 
Bundled Moving
DLT/ceresRigidError.mexa64': /usr/local/lib/libceres.so: undefined 
symbol:
cholmod_camd

1 个答案:

答案 0 :(得分:0)

Ceres求解器需要Cholesky方法来求解线性系统。将c ++文件链接到包含cholmod_camd的库(使用-lcholmod -lmwlapack)或明确告诉ceres你没有cholmod(使用cmake构建ceres时)。请查看http://ceres-solver.org/installation.html了解如何安装Ceres-solver。