Reduce the MCR Library size

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?

Réponses (1)

Sergey
Sergey le 9 Juil 2013
Modifié(e) : Walter Roberson le 22 Déc 2015

0 votes

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 commentaires

Friedrich
Friedrich le 9 Juil 2013
AFAIK this doesn't apply to the MCR. This is for installing MATLAB only.
MCR is fixed size.
Gary Liu
Gary Liu le 6 Mar 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.

Connectez-vous pour commenter.

Catégories

Produits

Commenté :

le 6 Mar 2021

Community Treasure Hunt

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

Start Hunting!

Translated by