How do I package add-ons with my standalone app?

11 views (last 30 days)
Hi, I am trying to build a standlone app with App Designer. On my computer, I have the MATLAB Support for MinGW-w64 C/C++ Compiler ver 23.1.0. It is necessary for some of the aspects of my code to function. When I package the app, it doesn't seem to include this add-on, since those aspects don't work.
I'm rather new to compiler stuff, so any information would be greatly appreciated! And let me know if there is other information I can provide.

Answers (1)

Image Analyst
Image Analyst on 9 Nov 2023
You need to include them with the -a option of mcc. Here is an example of mine where I had to explicitly include the resnet18 add-on:
mcc('-m', mFileName, '-d', outputFolder, ...
'-a', './Deep Learning Module/*.m', ...
'-a', 'C:\ProgramData\MATLAB\SupportPackages\R2022b\toolbox\nnet\supportpackages\resnet18');
  1 Comment
Jessica West
Jessica West on 9 Nov 2023
I see. I'm not sure what files I need to include for the add on to work, though. I found a folder of libraries in C:\Program Files\MATLAB\R2023a\extern\lib\win64\mingw64 that corrospond to the add-on I want to include. Do I just add that folder?

Sign in to comment.

Products


Release

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!