additional files in Matlab Compiler

14 次查看(过去 30 天)
Quentin
Quentin 2019-10-18
编辑: Natan 2025-2-4
Hello,
I have a Matlab Gui that I want to convert to a stand alone application using Matlab Compiler. I watched the tutorials which were really helpful and easy. The entire process seemed to work, but now when I run the .exe, I receive an error that a specific jpg is missing. Made sure to include this file in the "files installed for your end user section". I'm not sure why Matlab is not finding it. Any assistance would be greatly appreciated.
Cheers,
FBAnnotation 2019-10-17 120015.jpg
Annotation 2019-10-17 115943.jpg
  1 个评论
Adam
Adam 2019-10-18
You should give full paths to read files really, especially when you compile a program as these will be in different locations and not on the Matlab path (which data folders shouldn't really be anyway).
doc ctfroot
can help you determine the correct location for a deployed app.
doc isdeployed
is also useful here to ensure you look for the file in the right place when it is deployed or not deployed.

请先登录,再进行评论。

回答(1 个)

Natan
Natan 2025-2-4
编辑:Natan 2025-2-4
Very helpful to uncheck the hide of the console (windows command shell) for debugging - take a screenshot of the all console before it dissapear, and then try from that to understand the real problem.
Because the message is very not descriptive and in the console there are much more information.
For my case, a missing file wasn't in the project and the message just tell about a line and only in the console the warning of the file missing catch me.

类别

Help CenterFile Exchange 中查找有关 Application Deployment 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by