Reduce the MCR Library size

10 Ansichten (letzte 30 Tage)
Frederic
Frederic am 4 Nov. 2012
Kommentiert: Gary Liu am 6 Mär. 2021
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?

Antworten (1)

Sergey
Sergey am 9 Jul. 2013
Bearbeitet: Walter Roberson am 22 Dez. 2015
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 Kommentare
Friedrich
Friedrich am 9 Jul. 2013
AFAIK this doesn't apply to the MCR. This is for installing MATLAB only.
MCR is fixed size.
Gary Liu
Gary Liu am 6 Mär. 2021
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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by