Effacer les filtres
Effacer les filtres

Why do I get a "could not find version 7.14 of the MCR..." error when running my compiled compiled .exe?

97 vues (au cours des 30 derniers jours)
Wrote a simple .m file to try MATLAB compiler (come with MATLAB R2010b).
After build and package, all are put into one single folder (on my computer), which contains sub-folder v714. Yet when double clicked the .exe file, got the error "could not find version 7.14 of the MCR...".

Réponse acceptée

Todd Flanagan
Todd Flanagan le 9 Fév 2011
There are really 2 things that need to happen to run an application created by the MATLAB compiler.
  1. The files for the MCR need to be in place
  2. The system path variable needs to point to those files.
The mcrinstaller command can be used from the MATLAB command line to find the mcrinstaller.exe binary. For example:
>> mcrinstaller
The WIN64 MCR Installer, version 7.14, is:
C:\Program Files\MATLAB\R2010b\toolbox\compiler\deploy\win64\MCRInstaller.exe
MCR installers for other platforms are located in:
C:\Program Files\MATLAB\R2010b\toolbox\compiler\deploy\<ARCH>
<ARCH> is the value of COMPUTER('arch') on the target machine.
It is also possible to test your application against your MATLAB install if the MATLAB Compiler is also installed. You can do this from the MATLAB command line like:
Or from a CMD shell as long as the PATH contains the runtime directory from your MATLAB install like:
C:\work\myexe>set PATH=C:\Program Files\MATLAB\R2010b\runtime\win64
  4 commentaires
Todd Flanagan
Todd Flanagan le 9 Fév 2011
You need to delete mclmcrrt7_14.dll from that folder. That will definitely cause you problems. That library loads a number of others from a relative path. Those libraries won't be resolved if you move it out of runtime/win32 or runtime/win64
Todd Flanagan
Todd Flanagan le 10 Fév 2011
simjo says, "Thanks much, it's working."

Connectez-vous pour commenter.

Plus de réponses (3)

Apurv Naman
Apurv Naman le 6 Mar 2017
Even i had the same problem but when i type mcrinstaller in command window it shows undefined function.
  1 commentaire
abdelaziz Saidane
abdelaziz Saidane le 2 Déc 2020
same here!
Did you found a solution for that ?
I tried using 2018a and 2012b versions as well!

Connectez-vous pour commenter.

Md Saiful Islam
Md Saiful Islam le 7 Mar 2022
Did anyone solve the problem? I am facing the same issue with 2021b

Stefanie Schwarz
Stefanie Schwarz le 27 Juil 2023


En savoir plus sur C Shared Library Integration dans Help Center et File Exchange


Community Treasure Hunt

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

Start Hunting!

Translated by