Is it possible to run a built exe without MCR?
Show older comments
I used deploytool to create a Windows Standalone Application. Is it possible to create an executable which doesn't depend on the MCR? Do I always have to provide the MCRInstaller, which has to be installed before running my executables created by MATLAB? Or is there an opportunity to bind the installed files in my package to make the exe completely "standalone"?
Accepted Answer
More Answers (1)
walid merniz
on 8 Aug 2011
0 votes
thanks
6 Comments
KYAW KYAW
on 21 Nov 2011
Hi,
I would like to know any *.exe from *.m file can run any other pc without installing Matlab or something if possible.
Thanks and best regards
Kyaw
Kaustubha Govind
on 21 Nov 2011
Please see the second paragraph in my answer regarding MATLAB Coder.
Walter Roberson
on 21 Nov 2011
The only way to do that would be to use MATLAB Coder (current product name), which creates C code. The product is expensive and there are quite a number of aspects of MATLAB that cannot be compiled with the product.
MATLAB Compiler generates a .exe but does require installation of MCR (MATLAB Component Runtime) on the target computer. It is possible to build self-extracting installers that will install MCR along with your .exe .
kyikyi wai
on 20 Nov 2016
hi I cannot make m file to exe showing mcc error. Could u please tell me how to fix it.
Thank you. kaung
Walter Roberson
on 20 Nov 2016
You need the MATLAB Compiler product for mcc .
Note: MATLAB Compiler is only available for the Standard / Professional license, and for the Academic license; it is not available for Student license or Home license.
Image Analyst
on 20 Nov 2016
Use "ver" on the command line or this line of code:
>> hasLicenseForToolbox = license('test', 'Compiler')
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!