Why is my QT application not working?
Solution 1
I had the same problem.
You need to include the "platform" directory containing qwindows.dll and qminimal.dll in your executable directory. You can find the directory under the "plugins" folder.
If you don't add this, your application will appear to load and then exit with return code 0. Dependency walker cant help you because the DLLs are delay-loaded.
Solution 2
I had the same problem - I'd added all the DLLs reported by Dependency Walker, but my program exited immediately with no error message when run.
I added libEGL.dll
to the program directory and it now runs normally.
I'm guessing that libEGL.dll
is loaded dynamically by one of the other DLLs - probably libGLESv2.dll
, on the basis that of all the known dependencies it has the most similar name (!) - and that dynamic loading is not something that Dependency Walker can detect.
Solution 3
I experienced the same issue as well and learned that MinGW GCC 4.7 is not compatible with Qt 5.0 and above from this this post. I took the same approach as you did and switched over to Qt Creator 4.8 which worked.
avi software
Since i was a little kid, i was attracted to computers, Today i am a programmer, and really enjoy from what i'm doing. SOreadytohelp
Updated on June 05, 2022Comments
-
avi software almost 2 years
I built a Qt 5 application using Qt Creator on Windows 7 64 bit (using msvc 2010). The application runs perfectly on my computer but it won't work on other computers.
I copied all the .dlls which were shown as missing in Dependency Walker into the program folder and there is no error, but the application just won't run.
I've tested it on Windows XP and Windows 7 64 and 32 bit.
What can I do in order to find out what's wrong?UPDATE: i installed Qt 4.8.4 (vs 2008) and msvc 2008 express and i compiled it and it's runs on other computers, with the .dlls of Qt4. maybe someone know what the problem with Qt5...
-
hexicle almost 11 yearsworked for me! Thank you so much!!! I had the same problem. For me including the 'platform' folder and adding mingwm10.dll wasn't necessary. I just added all the DLL files that the error message when I click my .exe file keeps giving me, then the final step is to add libEGL.dll, and then it just works!