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
2021-8-7
Does it use the symbolic toolbox?
Muhammad Azlan Shah Bin Suhaimi
2021-8-7
回答(2 个)
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
2021-8-7
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
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
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
2021-8-7
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
2021-8-8
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
2021-8-9
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
2021-8-11
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
2021-8-16
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
2021-8-7
0 个投票
The Symbolic Toolbox cannot be compiled.
类别
在 帮助中心 和 File Exchange 中查找有关 Standalone Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!