When compiling a stand-alone application, is there a way to reduce the libraries included in the MCR to ONLY the essential DLLs, and essentially create a "Diet" version? If not, are there steps that can be taken prior to the compiling process?

답변 (1개)

Sergey
Sergey 2013년 7월 9일
편집: Walter Roberson 2015년 12월 22일

0 개 추천

Hi Frederic,
Please take a look on the installer_input.txt that can be passed to MCR's Setup.exe as one of input arguments. In theory you should be able to specify only the products you need (and exclude redundant Toolbox packages). Here is the exceprt from installer_input.txt (MCR 8.0):
## SPECIFY PRODUCTS YOU WANT TO INSTALL
##
## By default, the installer installs all the products and
## documentation for which you are licensed. Products you are not licensed for
## are not installed, even if they are listed here.
##
## Note:
## 1. To automatically install all your licensed products, do not edit
## any lines in this section.
##
## 2. To install a specific product or a subset of products for
## which you are licensed, uncomment the line for the product(s) you want
## to install.
Hope that helps.

댓글 수: 2

Friedrich
Friedrich 2013년 7월 9일
AFAIK this doesn't apply to the MCR. This is for installing MATLAB only.
MCR is fixed size.
Gary Liu
Gary Liu 2021년 3월 6일
Starting from R2016a release, it's possible to distribute your application/Compiler SDK library with a subset of MATLAB Runtime that is needed for the application/library to run.

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

카테고리

도움말 센터File Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

질문:

2012년 11월 4일

댓글:

2021년 3월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by