Why do I get an “Invalid MEX File” error while executing my application which has a dependency on a MEX file?
6 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2013-6-13
编辑: MathWorks Support Team
2014-4-17
I am creating a compiled application which uses a MEX file in its operations. While I create it for a 32 bit machine it works fine but when I deploy it on a 64 bit machine I receive the following error:
Invalid MEX-file 'C:\Users\mllopes.000\AppData\Local\Temp\mllopes\mcrCache8.0\DS_GUI5\DS_GUI\FieldSolenoid_Opt_mex.mexw64': The specified module could not be found.
Everything (MEX, M, and the EXE files) was made using the same WIN 7 (x64) machine(using MATLAB 2012b). The executable runs fine on this machine. However, the machine I am trying to deploy the Executable is another WIN 7 (x64) machine that doesn't have MATLAB. It only has the MCR 2012b installed. I am using Microsoft Windows SDK 7.1 as the compiler.
What could be the issue?
采纳的回答
MathWorks Support Team
2013-10-18
This peculiar behavior was because that the MCR was not able to find the MEX file. The MEX file was not able to find a dependency which seems to be related/included with Microsoft Windows SDK 7.1.
Installing the Microsoft Windows SDK 7.1 on the target computer and restarting the machine would resolve the issue.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Troubleshooting in MATLAB Compiler SDK 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!