mclmcrt710 error while running .exe matlab file

조회 수: 2 (최근 30일)
Sarah Ghosh
Sarah Ghosh 2013년 6월 19일
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

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2013년 6월 19일
  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
Sarah Ghosh
Sarah Ghosh 2013년 6월 20일
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 2013년 6월 20일
Have you tried running "mbuild -setup" to see if the utility picks up the installed compiler? Btw, please restart MATLAB after installation.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by