App designer and runtime compiler problem for creating exe file

9 ビュー (過去 30 日間)
reza rahmati
reza rahmati 2023 年 3 月 3 日
コメント済み: reza rahmati 2023 年 3 月 10 日
Hi,
I created an app with app designer and with Matlab 2021a version.
I also download Matlab Runtime (version 2021a).
When I try to package app, I check the "Runtime included in the app" as follows:
Then, I click package button and select "Specify Location" for choosing Run Time compiler files.
But when I choose the path for Runtime compiler (zip file) and click OK, this error appeared for me:

採用された回答

Eric Delgado
Eric Delgado 2023 年 3 月 9 日
I think you should download Runtime directly from your Matlab. Matlab itself will map the runtime installer path and embed it in your standalone app installer.
compiler.runtime.download
Let me tell you something... I am working with Matlab standalone apps for 3.5 years and I think it's not a good idea to embed the Runtime in your app installer. This executable file will be gigantic! :(
Just create an installation guide for your users with these steps:
  • install Runtime;
  • copy the folder "for redistribution files-only" to a place where the user has admin privileges.
  • run it!
See the discussion on link above about the "for redistribution files-only" version of the app:
https://www.mathworks.com/matlabcentral/answers/1919640-do-you-need-to-install-standalone-applications#answer_1184320?s_tid=prof_contriblnk

その他の回答 (1 件)

Steven Lord
Steven Lord 2023 年 3 月 9 日
I created an app with app designer and with Matlab 2021a version.
I also download Matlab Runtime (version 2021a).
If you downloaded the MATLAB Runtime from this page it appears you'll get the runtime for Update 8 of release R2021a. Are you using Update 8 of release R2021a to create the standalone application? I'm not 100% certain they need to match but I suspect that may be the cause of the error you received.
The fact that the documentation page for compiler.runtime.download (suggested by @Eric Delgado) specifically calls out "version and update level" supports my suspicion that they need to match.

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by