加载库错误 Matlab [英] Load Library error Matlab

查看:18
本文介绍了加载库错误 Matlab的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算与 OpenCV 1.1 版本和 Matlab2011 一起工作.该程序使用调用加载库.但是,它返回一个错误

I intend to work with OpenCV 1.1 version and Matlab2011 together. The program uses call to load library. However, it returns an error

 > 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.1incxcore110.dll"
C:Program Files (x86)OpenCV1.1incxcore110.dll is not a valid
Win32 application.

我已经在 Matlab 2008 和 2010 中测试了该程序,但它给出了不同类型的错误此外,在进行 MEX 设置时,我得到以下选项选择编译器:

I have tested the program in Matlab 2008 and 2010 where it gives error of a different kind I have installed x64 Compilers and Tools and my system has Visual Studio2008 and 2010 with SDK7 and 6.1. Also, on doing MEX setup I get the following options Select a compiler:

[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 中的线程,其中山雀提到 2011 支持加载库.那么,为什么它不起作用?请帮忙.

I am perplexed at what to do as this problem is persistently appearing. I even followed the thread in link where tit mentions that 2011 supports load library. So,why does it not work?Please help.

推荐答案

为 32 位编译的应用程序不与为 64 位编译的应用程序混合.如果您的 OpenCV 是为 32 位编译的,请确保 Matlab 和您的编译器也是 32 位.

Applications compiled for 32bits don't mix with applications compiled for 64bits. If your OpenCV was compiled for 32bits, make sure Matlab is 32bits as well as your compilers.

顺便说一句,请认真考虑迁移到更新的版本.OpenCV 1.1 是侏罗纪的

BTW, seriously consider moving to a more recent version. OpenCV 1.1 is jurassic!

这篇关于加载库错误 Matlab的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆