Manage Support Packages
Using a Compiler App
Many MATLAB® toolboxes use support packages to interact with hardware or to provide additional processing capabilities. If your MATLAB code uses a toolbox with an installed support package, the app displays a Suggested Support Packages section.
The list displays all installed support packages that your MATLAB code requires. The list is determined using these criteria:
MATLAB Compiler™ detects that your code has a dependency on the support package.
MATLAB Compiler detects a dependency on a product for which you have one or more support packages installed.
Your code is dependent on the base product of the support package.
Deselect support packages that are not required by your application.
Some support packages require third-party drivers that the compiler cannot package. In this case, the compiler adds the information to the installation notes. You can edit installation notes in the Additional Installer Options section of the app. To remove the installation note text, deselect the support package with the third-party dependency.
Caution
Any text you enter beneath the generated text will be lost if you deselect the support package.
Using the Command Line
Many MATLAB toolboxes use support packages to interact with hardware or to provide
additional processing capabilities. If your MATLAB code uses a toolbox with an installed support package, use
the-a
flag with mcc
command when packaging
your MATLAB code to specify supporting files in the support package folder. For
example, if your function uses the OS Generic Video Interface
support
package, run the following command:
mcc -m -v test.m -a C:\MATLAB\SupportPackages\R2024b\toolbox\daq\supportpackages\daqaudio ... -a 'C:\MATLAB\SupportPackages\R2024b\resources\daqaudio'
Some support packages require third-party drivers that the compiler cannot package. In this case, you are responsible for downloading and installing the required drivers.