Compiler ignores MCC options

Dear,
Since I updated to r2025a, I'm encountering issues with the compiler.build.standaloneWindowsApplication method.
In the buildOpts struct I parse to this function, I specify `AdditionalFiles`, but they are not included in the build (nor in the compiled package).
I did some debugging on the builder, and both builder.MccInfo.MccInput as builder.MccInfo.MccCommandString show the Additional files correctly, but once premcc, mcc and postmcc are called, the files are never added to the `FilesToBeDeployed` array (except the icon, splashscreen, and executable).
It seems to be that MCC is ignoring the input commands it receives. With r2024b, this issue did not exist, and the AdditionalFiles were added succesfully at each compile.
How can I fix this?
Best Regards,
Jelle

6 commentaires

Torsten
Torsten le 23 Juil 2025
You should contact MATLAB Technical Support:
Jelle
Jelle le 23 Juil 2025
I just contacted them. I'll keep this question up to date with their response.
Image Analyst
Image Analyst le 23 Juil 2025
On the deployed/target system, where did you look for the additional files that were to be included/shipped?
Jelle
Jelle le 23 Juil 2025
The location where r2024b also putted its "AdditionalFiles", being [installation_directory]/application. This is also the directory in which the executable, splashscreen file and icon file are written to. When manually copying the files I added to "AdditionalFiles" in this directory, the application finds all files as expected.
Image Analyst
Image Analyst le 24 Juil 2025
Did you use the cd function anywhere in your code? Did you (hopefully) always use fullfile to construct full file names of the files you want to access? See the FAQs:
Jelle
Jelle le 25 Juil 2025
Yes, I'm well aware of those coding practices and apply them. In r2024b this also never gave an issue. Only since updating to r2025a the compiler itself just refuses to package the "Additional Files" I select with the executable.
When adding the files manually to the directory r2024b generated executables put (/ installs) them, all works fine.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur MATLAB Compiler dans Centre d'aide et File Exchange

Produits

Version

R2025a

Question posée :

le 23 Juil 2025

Commenté :

le 25 Juil 2025

Community Treasure Hunt

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

Start Hunting!

Translated by