Borrar filtros
Borrar filtros

Is it possible to run a built exe without MCR?

76 visualizaciones (últimos 30 días)
D.
D. el 16 de Mayo de 2011
Comentada: ananth a el 21 de Oct. de 2019
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"?

Respuesta aceptada

Kaustubha Govind
Kaustubha Govind el 16 de Mayo de 2011
When using the MATLAB Compiler to compile MATLAB code into a standalone executable, you do need to install the MCR because the generated code calls into these runtime libraries. Also, you can package the MCR together with the executable and have it installed automatically when the executable is run. If you are using deploytool, you simply need to select "Add MCR" and "Embed the MCR in the package" from the Package pane.
Note that MATLAB Coder is the other product that actually allows you to generate truly standalone C/C++ code from MATLAB code (without any need for additional libraries like the MCR). However, it supports only a limited subset of the MATLAB language.
  7 comentarios
Steven Lord
Steven Lord el 16 de En. de 2019
Torsten Klement,
Which release are you using?
Are you using the Application Compiler App, deploytool, or some other interface to create your application? If you're using some other interface, give us more details about that interface.
ananth a
ananth a el 21 de Oct. de 2019
I have to generate the exe shoul work in windows without installing the MCR.Can you please Tell me the way or procedure to generate .exe with inbuild MCR?

Iniciar sesión para comentar.

Más respuestas (1)

walid merniz
walid merniz el 8 de Ag. de 2011
thanks
  6 comentarios
Walter Roberson
Walter Roberson el 20 de Nov. de 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
Image Analyst el 20 de Nov. de 2016
Use "ver" on the command line or this line of code:
>> hasLicenseForToolbox = license('test', 'Compiler')

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with MATLAB Compiler SDK en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by