필터 지우기
필터 지우기

compiled app GUI doesn't open with R2021b

조회 수: 21 (최근 30일)
steve draving
steve draving 2022년 7월 28일
댓글: steve draving 2023년 10월 16일
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.

답변 (1개)

Himanshu
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:
  1. 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.
  2. 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.
Hope this helps!
  댓글 수: 1
steve draving
steve draving 2023년 10월 16일
Hi Himanshu, I forgot about this pending issue. It's fairly old now, but I did eventually resolve this issue. It turns out that my company began using a new security application called PowerBroker that controls what privilages everyone has on their PCs, even as administrator. I was unsucessful getting them to fix our installation of PowerBroker, but am able to run compiled MATLAB programs now by launching them from Windows in "Elevated" mode. Steve

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by