Qt application runs in Qt creator, but not as an .exe file
-
wrote on 27 Aug 2021, 07:42 last edited by
Hi, I've been making my simple program for the past few days, and I've finished it, but when I ran it as an .exe file outside of the Qt creator, it asked me to add some .dll files, so I did. Then it said "This application was unable to start correctly 0xc00007b", so I tried more solutions to fix my issue.
I've tried to add the .dll files to the folder where the .exe file was, and nothing happened... Still the same error message.
Then, I tried copying the platform folder from the Qt folder, nothing.
Then, I copied every .dll file from MinGW/bin folder, and I got 2 new error messages:
"This application failed to start because no qt platform plugin could be initialized. Reinstalling the application may fix this problem." and "A fail fast exception occurred. exception handlers will not be invoked and the process will be terminated immediately."
This issue is probably caused because I use Windows 10 (x64) Super Lite because my PC isn't the best.
I've tried many ways of troubleshooting but none of them seem to work.
I'd be happy if we could solve my issue.
Thans -
Hi, I've been making my simple program for the past few days, and I've finished it, but when I ran it as an .exe file outside of the Qt creator, it asked me to add some .dll files, so I did. Then it said "This application was unable to start correctly 0xc00007b", so I tried more solutions to fix my issue.
I've tried to add the .dll files to the folder where the .exe file was, and nothing happened... Still the same error message.
Then, I tried copying the platform folder from the Qt folder, nothing.
Then, I copied every .dll file from MinGW/bin folder, and I got 2 new error messages:
"This application failed to start because no qt platform plugin could be initialized. Reinstalling the application may fix this problem." and "A fail fast exception occurred. exception handlers will not be invoked and the process will be terminated immediately."
This issue is probably caused because I use Windows 10 (x64) Super Lite because my PC isn't the best.
I've tried many ways of troubleshooting but none of them seem to work.
I'd be happy if we could solve my issue.
Thanswrote on 27 Aug 2021, 07:45 last edited by JonB@Sucharek said in Qt application runs in Qt creator, but not as an .exe file:
"This application failed to start because no qt platform plugin could be initialized.
For this one you should set environment variable
QT_DEBUG_PLUGINS=1
in a terminal and then run your executable (from there). Look at the very end of the diagnostic output you will get for what is causing it to produce that message, -
wrote on 27 Aug 2021, 07:53 last edited by
-
Hi, so I've set the variable, ran the program, but theres no output.
Sorry for the delayed reply, I'm new on the forums, so I have to wait 600 seconds (10 minutes) to make a reply.
I'll provide a screenshot.@Sucharek said in Qt application runs in Qt creator, but not as an .exe file:
I've set the variable, ran the program, but theres no output.
In Windows, the debug output goes somewhere else.
Use DebugView to see it: https://docs.microsoft.com/en-us/sysinternals/downloads/debugview
-
wrote on 27 Aug 2021, 08:15 last edited by
-
Ok, I've gotten an output. Here it is:
I find it interesting that I guess it doesn't see the qwindows.dll in the platform folder.
Here's a screenshot of the platform folder
@Sucharek said in Qt application runs in Qt creator, but not as an .exe file:
the platform folder
It should be
platforms
, notplatform
-
wrote on 27 Aug 2021, 08:25 last edited by
Thanks, that actually solved my issue.
Thank you everyone for cooperating with me.
I'm marking this post as solved.
Thanks
1/7