Reduce the MCR Library size

19 views (last 30 days)
Frederic
Frederic on 4 Nov 2012
Commented: Gary Liu on 6 Mar 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?

Answers (1)

Sergey
Sergey on 9 Jul 2013
Edited: Walter Roberson on 22 Dec 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 Comments
Friedrich
Friedrich on 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 on 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.

Sign in to comment.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!