gpt4 book ai didi

visual-studio - 无效的 MEX 文件 '.mexw64' : . mexw64 不是有效的 Win32 应用程序

转载 作者:太空宇宙 更新时间:2023-11-03 21:47:20 26 4
gpt4 key购买 nike

尝试运行 opencv sample matlab call , 我收到一个错误

无效的 MEX 文件“mypath\displayImage.mexw64”:mypath\displayImage.mexw64 不是有效的 Win32 应用程序。

编译时没有错误。在编译和运行简单的 helloworld 示例时也没有错误。

这可能是什么原因?为什么即使文件名显示为 64 也需要 win32?

Matlab是2013a,VS是2012,都是64bit。

更新

我找到了 this "solution" 2009 年说任何被调用的 DLL 都应该是 64 位的。

这是

(1) 现在是真的,并且

(2) 在实践中可能吗?

如何判断调用的库是32位的?

最佳答案

好的,我的 PATH 指向 %OPENCV_DIR%\build\x86\vc11\bin 并且这覆盖了所有 LIB 设置。

这是在运行时。

即当我修复 PATH 值时,程序即使没有重新编译也开始运行。

关于visual-studio - 无效的 MEX 文件 '<myfile>.mexw64' : <myfile>. mexw64 不是有效的 Win32 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17274806/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com