Standalone application execution problem

I can run the function while use the matlab but when I have deploy matlab apps desinger into standalone application, in the apps, the application cannot be executed

2 件のコメント

Walter Roberson
Walter Roberson 2021 年 8 月 7 日
Does it use the symbolic toolbox?
Muhammad Azlan Shah Bin Suhaimi
Muhammad Azlan Shah Bin Suhaimi 2021 年 8 月 7 日
yes for graphical display to show the speech before and after endpointdetection. When try to record the voice, it make an error sound. But whe running in matlab, it can be executed normally.

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

回答 (2 件)

Image Analyst
Image Analyst 2021 年 8 月 7 日

1 投票

And does it use any applets that have a user interface such as imtool, ClassificationLearner, ColorThresholder, etc.? Did it actually create a standalone .exe file? Please attach the mccExcludedFiles.log that the compiler creates.
Were there any warnings about path during compilation?
Do you read in any data files during run time using a path that is not fully complete, like it's only a relative path? Did you include those files with the -a option of mcc? Paths hard coded into your program need to start with the root folder or drive letter, not from your "current" folder since the real executable folder is not where you think it is (it's not where your .exe lives believe it or not).
Have you read the FAQ:

14 件のコメント

Muhammad Azlan Shah Bin Suhaimi
Muhammad Azlan Shah Bin Suhaimi 2021 年 8 月 7 日
yes it uses user interface and actually create an .exe file. But there is no warnings during compilation.
Image Analyst
Image Analyst 2021 年 8 月 7 日
Error using load
Unable to read file 'chclassifieres.mat'. No such file or directory.
Error in Recordsound/startupFcn (line 54)
app.check = load('chclassifieres.mat');
Error in Recordsound (line 191)
runStartupFcn(app, @startupFcn)
Image Analyst
Image Analyst 2021 年 8 月 7 日
@Muhammad Azlan Shah Bin Suhaimi's "Answer" moved here since it's a reply to me, not an answer to the original question:
I cannot share the file because it exceed 5mb. CAn you share ur email or any other methods?
Image Analyst
Image Analyst 2021 年 8 月 7 日
編集済み: Image Analyst 2021 年 8 月 7 日
Can you crop out some stuff so it's smaller? Or use your Google drive or your MATLAB drive.
Muhammad Azlan Shah Bin Suhaimi
Muhammad Azlan Shah Bin Suhaimi 2021 年 8 月 7 日
Walter Roberson
Walter Roberson 2021 年 8 月 8 日
...Doesn't matter, since the Symbolic Toolbox part of it cannot be compiled. Some of the other toolboxes cannot be compiled either.
Muhammad Azlan Shah Bin Suhaimi
Muhammad Azlan Shah Bin Suhaimi 2021 年 8 月 8 日
but how does some videos on youtube show that it can be compile using symbolic toolbox
Image Analyst
Image Analyst 2021 年 8 月 8 日
@Muhammad Azlan Shah Bin Suhaimi, what video (URL)? Did they really compile it or just run it. A lot of people say that the code compiles when all they mean is that MATLAB takes their source code and runs it, showing a GUI or whatever. I remove "matlab compiler" from many, many posts here that have nothing to do with the compiler toolbox at all. Those people just added that tag because they misunderstand what compiling means, perhaps like the one who posted your video.
Muhammad Azlan Shah Bin Suhaimi
Muhammad Azlan Shah Bin Suhaimi 2021 年 8 月 9 日
@Image Analyst have u try run the code and deploy the one that i gave to you?
Image Analyst
Image Analyst 2021 年 8 月 10 日
@Muhammad Azlan Shah Bin Suhaimi, No I did not try it because Walter looked at it and said it uses some function(s) from the Symbolic Toolbox, which I don't have, so I would not be able to run it, let alone compile it.
Muhammad Azlan Shah Bin Suhaimi
Muhammad Azlan Shah Bin Suhaimi 2021 年 8 月 11 日
so there is no other ways to compile the symbolic toolbox or buy it?
Image Analyst
Image Analyst 2021 年 8 月 11 日
Call sales or technical support and tell them you want to compile a program that uses the Symbolic Toolbox and see what they say. I don't know because I don't have that toolbox.
Is there no way it can be done numerically? Do you NEED to use Symbolic Toolbox functions? I think as long as you aren't using functions from that toolbox, it should be okay. For example I compile stuff all the time and it works fine as long as I don't use an applet like imtool(), which is in the Image Processing Toolbox. I can still compile it if I use other functions in that toolbox though. So just don't use anything from the Symbolic Toolbox and you should be fine.
Muhammad Azlan Shah Bin Suhaimi
Muhammad Azlan Shah Bin Suhaimi 2021 年 8 月 16 日
Warning: Error occurred when parsing the ImageSource value.
> In matlab.ui.control.internal.controller.ImageController/getImagePropertiesForView (line 189)
In matlab.ui.control.internal.controller.ImageController/getPropertiesForView (line 55)
In appdesservices.internal.interfaces.controller.mixin.ViewPropertiesHandler/getPVPairsForView (line 248)
In appdesigner.internal.serialization.util.ComponentObjectToStructConverter/buildComponentData (line 65)
In appdesigner.internal.serialization.util.ComponentObjectToStructConverter/buildComponentHierarchicalData (line 35)
In appdesigner.internal.serialization.util.ComponentObjectToStructConverter/buildComponentHierarchicalData (line 55)
In appdesigner.internal.serialization.util.ComponentObjectToStructConverter/buildComponentHierarchicalData (line 55)
In appdesigner.internal.serialization.util.ComponentObjectToStructConverter/buildComponentHierarchicalData (line 55)
In appdesigner.internal.serialization.util.ComponentObjectToStructConverter/getConvertedData (line 22)
In appdesigner.internal.application.loadApp (line 96)
In connector.internal.fevalMatlab
In connector.internal.fevalJSON
Did you know? what is these kind of problems?
Walter Roberson
Walter Roberson 2021 年 8 月 16 日
I suspect that it was working on a uiimage() call, but it could not understand the ImageSource that you supplied to it.
It just might have been in the stage of loading the application icon, maybe https://www.mathworks.com/matlabcentral/answers/499810-how-can-i-change-the-title-bar-icon-of-my-app#answer_559353

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

Walter Roberson
Walter Roberson 2021 年 8 月 7 日

0 投票

The Symbolic Toolbox cannot be compiled.

カテゴリ

ヘルプ センター および File ExchangeStandalone Applications についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by