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

查看:535
本文介绍了加载库错误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.1\bin\cxcore110.dll"
C:\Program Files (x86)\OpenCV1.1\bin\cxcore110.dll is not a valid
Win32 application.

我已经在Matlab 2008和2010中测试了该程序,在该程序中它给出了不同类型的错误,我已经安装了x64编译器和工具,并且我的系统具有Visual Studio2008和2010,以及SDK7和6.1.另外,在进行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(...

我困惑于该怎么办,因为这个问题不断出现.我什至遵循链接中的主题,其中山雀提到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天全站免登陆