2017-08-07 51 views
0

如何解决这个问题?我在我试图使用mex的C++文件中看不到cholmod_camd相关的头文件。无效的mex文件:undefined symbol:cholmod_camd

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

回答

0

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