필터 지우기
필터 지우기

Is it possible to run a built exe without MCR?

조회 수: 76 (최근 30일)
D.
D. 2011년 5월 16일
댓글: ananth a 2019년 10월 21일
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"?

채택된 답변

Kaustubha Govind
Kaustubha Govind 2011년 5월 16일
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
Steven Lord
Steven Lord 2019년 1월 16일
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 2019년 10월 21일
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?

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

추가 답변 (1개)

walid merniz
walid merniz 2011년 8월 8일
thanks
  댓글 수: 6
Walter Roberson
Walter Roberson 2016년 11월 20일
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 2016년 11월 20일
Use "ver" on the command line or this line of code:
>> hasLicenseForToolbox = license('test', 'Compiler')

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

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB Compiler SDK에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by