Create MCR using command line using requiredMCRProducts.txt
Show older comments
When I create a python package (Library compiler) using the MATLAB GUI, if I mark the the box "Runtime included in the package" then MyAppInstaller_mcr.install is created which contains just the products required for the package to execute. I think this information is taken from "requiredMCRProducts.txt".
This means the MCR is relatively small (at least compared to the complete MCR which is what the option "Runtime downloaded from web" would create).
Does this functionality to create a small MCR exist using only the command line functions?
I can create the python package fine using:
results = compiler.build.pythonPackage('magicsquare.m');
But then to create the compiler I can't see how to make the smaller MCR containing just the required products.
This command creates a web installer which will download the complete MCR:
compiler.package.installer(results, 'RuntimeDelivery', 'web');
And this command just adds the complete MCR (which had been previously downloaded) with the rest of the python package
compiler.package.installer(results, 'RuntimeDelivery', 'installer');
Thanks for any help offered,
Ben
(MATLAB version R2022a Linux)
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB Compiler SDK in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!