Hello Alecsander,
If you are using MATLAB R2013a or earlier version, you might have to uncheck the toolboxes you are not using in your code, before compiling. This can be done by:
- Clicking on the “Settings” icon in “deploytool” window and selecting “Settings”.
- Select the tab “Toolboxes on Path” and uncheck the toolboxes that are not being used in the code.
In case you are using MATLAB R2013b and beyond, you can explicitly specify the toolboxes you want the code to use, so that it does not look for anything else. You can do this by:
- Selecting “Settings” button on the “deploytool” window and adding flag “-N” to first uncheck all the toolboxes and then specify the list of toolboxes that your code uses with the “-p” flag.For example, if your code uses “Data Acquisition toolbox” and “Image Acquisition toolbox”, the additional parameters passed to MCC will be:-N -p daq imaq
The exact error message would help to know where the issue lies. Also, how do you know which toolboxes is the MATLAB compiler compiling?