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?
回答 (1 件)
Sergey
2013 年 7 月 9 日
編集済み: Walter Roberson
2015 年 12 月 22 日
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
2013 年 7 月 9 日
AFAIK this doesn't apply to the MCR. This is for installing MATLAB only.
MCR is fixed size.
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.
Please refer to https://www.mathworks.com/matlabcentral/answers/101332-why-is-matlab-runtime-so-large for more details
カテゴリ
ヘルプ センター および File Exchange で C Shared Library Integration についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!