Unable to start mex32 application

I am running a script in which i need to invoke a mexw32 file. But the following error is thrown which indicates that the application cannot start.
??? Invalid MEX-file (path of the .mexw32 file): This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
What all will be needed to run this file? How do i reinstall the application?

 採用された回答

Jan
Jan 2011 年 12 月 6 日

0 投票

mclmcrrt7x.dll contains the public interface to the MCR. This library must be present on all machines that run applications generated by MATLAB Compiler. Typically, this means that either the MCR is not installed on this machine, or that the PATH does not contain the folder where this DLL is located.
To work around this, install the MCR or modify the path appropriately. The path must contain <mcr_root>/<version>/runtime/<arch>, for example: c:\mcr\v73\runtime\win32|win64.

6 件のコメント

Friedrich
Friedrich 2011 年 12 月 6 日
running a mex file hasn't anything to do with the mclmcrrt7x.dll. he gets this error in MATLAB. Or maybe in a ML compiler generated application, which means it happens during runtime and the mclmcrrt7x.dll was already found and loaded. You would never ever gets an error like this when the mclmcrrt7x.dll is missing for a compiled application.
So or so its an error he gets in MATLAB and this point to a missing dependency.
Jan
Jan 2011 年 12 月 6 日
@Friedrich: I've found this description in the Matlab documentation. Maybe I would really "never ever get an error like this", but the documentation claims, I can do.
Friedrich
Friedrich 2011 年 12 月 6 日
@Jan: No it does not. The error you can obtain is:
"This application has failed to start because mclmcrrt7x.dll was not found. Re-installing the application may fix this problem. "
This is a totally different error message as
"??? Invalid MEX-file (path of the .mexw32 file): This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem."
Naazish
Naazish 2011 年 12 月 7 日
I tried installing the runtime library from the link which Jan provided.
For VS 2005 vcredist_x86.exe:
http://www.microsoft.com/downloads/details.aspx?familyid=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&displaylang=en
But there is some problem in installation. I'm getting 'Microsoft Visual C++ 2005 Redistributable' dialog box after the installation starts, which reads - "1:ALLUSERS property is not 1 - this MSM cannot be used for a per-use or fallback-to-per-user install"
What does this error mean and what do i do to install the application successfully?
Jan
Jan 2011 年 12 月 7 日
Which Matlab version are you using? Which MSVC version has been used to compile the mexw32 file? The MSVC2005 redistributables are usually installed with Matlab already. If you try to re-install them without admin privileges this message is shown.
Naazish
Naazish 2011 年 12 月 7 日
Version which i'm using is 2008a and have no idea about MSVC version.
Is there any other way than getting admin privileges?

サインインしてコメントする。

その他の回答 (1 件)

Friedrich
Friedrich 2011 年 12 月 6 日

1 投票

Hi,
sounds like a dependency of that mex file is missing. Make sure that all DLL's which are needed from that mex file are available during runtime. Maybe installing the Visual Studio redistributable packages can help if it was generated with a Visual Studio compiler on a different machine.

1 件のコメント

Kaustubha Govind
Kaustubha Govind 2011 年 12 月 6 日
There is also a Tech Solution which addresses the issue of missing redistributables: http://www.mathworks.com/support/solutions/en/data/1-CHQL57/index.html

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

質問済み:

2011 年 12 月 6 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by