1. 找不到libmatpm.lib
问题:编译opencv的matlab接口出现链接错误:找不到libmappm.lib。装的 matlab 7( R14SP2)。
解答:Release 14的matlab的matlab complier版本是4。Matlab的帮助中有“Differences Between Release 14 and Previous Versions of the MATLAB Compiler”有这个版本和前版本的区别。它说
Compiler 4 uses the new MATLAB Component Runtime (MCR), which is a stand-alone set of shared libraries that enable the execution of compiled M-files, instead of the MATLAB C/C++ Math and Graphics Libraries.
Since Compiler 4 does not use the MATLAB C/C++ Math and Graphics Libraries, the various mlf functions previously available with the libraries are no longer available. Some of the Release 13 mlf functions have Release 14 equivalents in the MATLAB External Interface functions. For example, you can replace calls to mlfScalar with calls to mxCreateDoubleScalar.
libmatpm.lib是个数学库,这个库上面说了,从R14开始已经不用了,所以会出链接问题。
具体编程问题参见matlab compiler的文档。