mclmcrt710 error while running .exe matlab file

1 vue (au cours des 30 derniers jours)
Sarah Ghosh
Sarah Ghosh le 19 Juin 2013
I have written a piece of code in MATLAB(V2009b) which involves GUI applications too. I would like to convert it to an executable file so that to run that software, I do not have to show the original code to the user. However, I am facing a lot of trouble with this.
1. To convert the .m file to .exe file, I installed the mcr using the mcrinstaller command to get the location and so on. But when I am trying to convert the .m file to .exe file using the command >> mcc -m myfun.m it asks to select a compiler, but the only option it shows is [0]None. Can anybody please explain what this means? If I do not have a compiler, then how do my other codes in MATLAB work fine. That code itself works fine by just loading it.
2. Moving on, I managed to convert that file to a .exe file using a different system which had version R2009a. But when I try to open the converted file in my system, it shows the error The program can't start because mclmcrt710.dll is missing from your computer. Try re-installing the program....
Please could anyone provide any help with these errors. Thanks in advance

Réponses (1)

Kaustubha Govind
Kaustubha Govind le 19 Juin 2013
  1. You need to install a Supported Compiler (look under your platform, and ensure that the column for "MATLAB Compiler" is checked), to be able to use MATLAB Compiler, and a few other products - the table that I pointed to lists those products in the column headings. A C/C++ compiler is not needed for regular MATLAB-file execution.
  2. You need to install the MATLAB Compiler Runtime (MCR) on any target machine where the executable is deployed. You can package the MCR Installer into the executable by checking the "Include MCR" option in deploytool at the time of compilation. Alternatively, you can manually copy over the installer and run it on the target machine. To locate the installer, just run "mcrinstaller" on the machine where the executable was compiled.
  2 commentaires
Sarah Ghosh
Sarah Ghosh le 20 Juin 2013
I already have Microsoft Visual C++ 2008 installed. (I rechecked its presence after your answer). But it is still not loading. What to be done?
Kaustubha Govind
Kaustubha Govind le 20 Juin 2013
Have you tried running "mbuild -setup" to see if the utility picks up the installed compiler? Btw, please restart MATLAB after installation.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by