Adding external files to Matlab Compiler app in R2025a

45 ビュー (過去 30 日間)
Adam
Adam 2025 年 7 月 23 日
編集済み: dpb 2025 年 8 月 14 日
Unfortunately I had to upgrade to R2025a recently and have been hugely disppointed by what seems like a massive regression in the app compiling workflow using Matlab Compiler. In R2024a, which I was using before, I was confident I could have got my app packaged up in 15 minutes, with R2025a I've been battling with it for over a day and still finding it troublesome. Has anyone else had experience using this on a complex project?
This huge change is not adequately covered in Release Notes nor in product help, but now you have to have a Matlab project in order to compile using the app. I've never used projects before (they seemed to offer nothing for our work style) so already this was a big change. But they have serious restrictions compared to past versions too.
It seems to accept code not being under the project folder no problem, which is a relief as I have a large repository of code that is used and I can't put it all under a project directory. However, I also use dlls, some icons, etc and in the past I could simply add these to the 'Files required for your application to run' section of the compiler. They would end up in the exact same relative location on the user's machine so my functions that use relative paths to read them worked fine in deployed apps too.
But now, in R2025 the 'Custom requirements' section of 'Files required for Standalone to run' insists on any file that is added being under the project folder. This means I have to take a copy of dlls, icons, etc and put them there. But these files get unpacked to a completely different location on the target machine, so any code that expects these to exist in a certain relative folder location breaks.
I can use ctfroot to take me to the parent folder where the app is deployed, but not the specific app folder under that, so I have to search around under that folder to find my dlls in some subfolder.
This is a fundamental change from R2024a and I am very disappointed by such a massive regression in the workflow. Matlab has always been excellent at backwards compatibility in almost every area, but this has made what used to be a relatively efficient process into something that is a struggle to make work at all.
  3 件のコメント
Adam
Adam 2025 年 7 月 23 日
Yeah, I did that yesterday, just thought I might as well see if anyone in the community has experience of using this and if it is just that I am totally new to using projects as a concept and am missing obvious functionality rather than it simply having been removed or obfuscated.
Xiao
Xiao 2025 年 8 月 13 日
編集済み: Xiao 2025 年 8 月 13 日
Yup, fustrating as hell and nigh unusable at the moment. Mathworks has been silent so far.

サインインしてコメントする。

採用された回答

Helen Zhu
Helen Zhu 2025 年 8 月 13 日
Thank you for your feedback.
Our Dev team has received the input and is working on adressing these features in a future release.
I believe you have already recieved workarounds from our suppor team.
But for the visibility of other audiences of this MATLAB Answer, I am sharing the workaround here:
To add files as "Files installed for your end user", you can use compiler.package.installer command line with "AdditionalFiles" argument.
  3 件のコメント
Helen Zhu
Helen Zhu 2025 年 8 月 14 日
Hi dpb,
Thank you for your feedback.
For any future questions or suggestions about our products, we recommend contacting MathWorks Technical Support directly. While the MATLAB Answers community is a great resource, posts here are not always guaranteed to be seen by MathWorks staff.
Thanks.
dpb
dpb 2025 年 8 月 14 日
編集済み: dpb 2025 年 8 月 14 日
Helen, I was thinking of perhaps some local discussion on the broached ideas here from some who, unlike me, have complex apps they are building before submitting enhancement request cold.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

製品


リリース

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by