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?

 Respuesta aceptada

Jan
Jan el 6 de Dic. de 2011
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 comentarios

Friedrich
Friedrich el 6 de Dic. de 2011
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 el 6 de Dic. de 2011
@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 el 6 de Dic. de 2011
@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 el 7 de Dic. de 2011
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 el 7 de Dic. de 2011
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 el 7 de Dic. de 2011
Version which i'm using is 2008a and have no idea about MSVC version.
Is there any other way than getting admin privileges?

Iniciar sesión para comentar.

Más respuestas (1)

Friedrich
Friedrich el 6 de Dic. de 2011

1 voto

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 comentario

Kaustubha Govind
Kaustubha Govind el 6 de Dic. de 2011
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

Iniciar sesión para comentar.

Categorías

Etiquetas

Preguntada:

el 6 de Dic. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by