- If the issue occurs on multiple machines, manually include the <mcrroot>\bin\win64\ucrtbase.dll file in the "Files required for your application to run" section.
- If the issue occurs on a specific machine, copy the file ucrtbase.dll from the <mcrroot>\bin\win64 folder to the directory you would like run the app from.
compiled app GUI doesn't open with R2021b
13 次查看(过去 30 天)
显示 更早的评论
I have an old GUI-based standalone app that I wrote 3 or 4 years ago using app designer. I was able to compile and run it ok then, but now when I compile and run it (with R2021b). The GUI never appears. The app produces no error messages. I inserted some disp() statements in the app that appear in the command prompt window, so i believe it's it starts up and runs ok, but there's no GUI to control the app. It just sits there waiting for me to press a GUI button I can't see. I works just fine when I run it from app designer.
The complier log has some new warnings that weren't there before, but I think they're benein.
it acts like the app.VCOTest.Visible = 'on'; instruction quit working without throwing an error.
Any ideas?
Compiler Log File:
mcc -o VCOTest -W 'main:VCOTest,version=3.0' -T link:exe -d 'D:\HW Projects\VCO Test\MATLAB\VCOTest3\VCOTest\for_testing' -R '-logfile,VCOTest_Log' -v 'D:\HW Projects\VCO Test\MATLAB\VCOTest3\VCOTestGUI.mlapp' -a 'D:\HW Projects\VCO Test\MATLAB\VCOTest3\Autoset.txt' -a 'D:\HW Projects\VCO Test\MATLAB\VCOTest3\Config.txt' -a 'D:\HW Projects\VCO Test\MATLAB\VCOTest3\Config_debug.txt' -a 'D:\HW Projects\VCO Test\MATLAB\VCOTest3\DefaultState.mat' -a 'D:\HW Projects\VCO Test\MATLAB\VCOTest3\VCOTest.set' -r 'C:\Program Files\MATLAB\R2021b\toolbox\compiler\resources\default_icon.ico'
Compiler version: 8.3 (R2021b)
Analyzing file dependencies.
Warning: MATLAB preference entry "SMTP_Username" has been removed.
Warning: MATLAB preference entry "SMTP_Password" has been removed.
Warning: Your deployed application may fail because file or folder paths
not present in the deployed environment may be included in your MATLAB startup
file. Use the MATLAB function "isdeployed" in your MATLAB startup file to
determine the appropriate execution environment when including file and folder
paths, and recompile your application.
Parsing file "D:\HW Projects\VCO Test\MATLAB\VCOTest3\VCOTestGUI.mlapp"
(referenced from command line).
Warning: The source file 'C:\Users\sd2466\AppData\Roaming\MathWorks\MATLAB\R2021b\matlabprefs.mat' has a name conflict with another source file in CTF. It is saved as '.matlab\matlabprefs.mat' in the CTF. Please verify that your application works as expected.
Generating file "D:\HW Projects\VCO Test\MATLAB\VCOTest3\VCOTest\for_testing\readme.txt".
Packaging...
Creating the bundle...
Creating the install agent URL file...
Web based installer created at D:\HW Projects\VCO Test\MATLAB\VCOTest3\VCOTest\for_redistribution\MyAppInstaller_web.exe.
Packaging complete.
Elapsed packaging time was: 15 seconds.
0 个评论
回答(1 个)
Himanshu
2023-10-16
Hey,
I understand that you are trying to compile and run a GUI that you previously created on R2021b, but are unable to see the GUI. Please try out the following workaround to resolve the issue:
Hope this helps!
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!