【发布时间】:2012-06-02 11:55:45
【问题描述】:
我打算一起使用 OpenCV 1.1 版本和 Matlab2011。该程序使用调用来加载库。但是,它返回一个错误
> In loadlibrary at 347
In Untitled at 4
Error using loadlibrary (line 421)
There was an error loading the library "C:\Program Files
(x86)\OpenCV1.1\bin\cxcore110.dll"
C:\Program Files (x86)\OpenCV1.1\bin\cxcore110.dll is not a valid
Win32 application.
我已经在 Matlab 2008 和 2010 中测试了该程序,它给出了不同类型的错误我已经安装了 x64 编译器和工具,我的系统具有带有 SDK7 和 6.1 的 Visual Studio2008 和 2010。此外,在进行 MEX 设置时,我得到以下选项 选择编译器:
[1] Microsoft Software Development Kit (SDK) 7.1 in c:\Program Files (x86)\Microsoft Visual Studio 10.0
[2] Microsoft Visual C++ 2010 Express in c:\Program Files (x86)\Microsoft Visual Studio 10.0
[0] None
Compiler: 2
这也会返回错误
Error in ==> untitled at 5
loadlibrary(...
我不知道该怎么做,因为这个问题一直在出现。我什至关注了link 中的线程,其中 tit 提到 2011 支持加载库。那么,为什么它不起作用?请帮助。
【问题讨论】:
标签: matlab opencv 32bit-64bit loadlibrary