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:

  • the support package is installed

  • your code has a direct dependency on the support package

  • your code is dependent on the base product of the support package

  • your code is dependent on at least one of the files listed as a dependency in the mcc.xml file of the support package, and the base product of the support package is MATLAB

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\R2016b\toolbox\daq\supportpackages\daqaudio -a 'C:\MATLAB\SupportPackages\R2016b\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.

Was this topic helpful?