[SOLVED] Qt 5.0.0 built with VS2012 : app exe doesn't run when outside Qt Creator
-
I have Qt 5.0.0 that I built with VS2012 successfully.
My applications (projects) executes normally when compiled+run inside Qt Creator (2.6.0) but when I execute the exe files outside, it doesn't.
Compilation doesn't throw any errors plus running the apps outside Qt Creator doesn't pop-up any dialog boxes about any error.
... or simply "NOTHING HAPPENS"I added all the DLLs it need together with the exe and it isnt working. I used dependency walker to check but everything is satisfied.
Any help? thanks!
-
You need to copy windows QPA plugin to <your app dir>/plugins/platforms. The plugin (qwindows.dll) can be found in your Qt installation folder (qtbase/plugins/platforms).
-
Dear sierdzio,
I followed your instructions but it still doesn't work:
My app directory contains the following
- app.exe
- libGLESv2.dll
- Qt5Core.dll
- Qt5Gui.dll
- Qt5Widgets.dll
- plugins (folder)
** platforms (folder)
*** qwindows.dll
*** qminimal.dll
I did the same with the debug build and this time a messageBox popped-up:
bq. Debug Error!
Program: <project_path>\debug\Qt5Cored.dll
Module: 5.0.0
File: kernel\qguiapplication.cpp
Line: 780
Failed to load platform plugin "windows". Available platforms are:
minimal
windowsI typed all what I saw in the messagebox. It has 3 buttons, abort, retry and ignore. All the buttons were "useless" since app terminates. Maybe this can help. Thanks.
PS: Still runs inside Qt Creator.... I think I am just missing something
-
"platforms" should be directly on the level of your app, not in the "plugins" directory.
-
[quote author="Krzysztof Kawa" date="1357925061"]"platforms" should be directly on the level of your app, not in the "plugins" directory.[/quote]
I also did that and failed. Same message popped-up but the words "windows" and "minimal" are repeated like this:
bq. minimal
windows
minimal
windows -
works now!
copying libEGL.dll or *libEGLd.dll into the app directory is also needed
too bad the app doesn't pop-up any messages that it is needed!
-
You might want to read this:
http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html
helped me a lot!
-
Thank you!! It works indeed after libEGL.dll got copied.
[quote author="Code_ReaQtor" date="1358250411"]works now!
copying libEGL.dll or *libEGLd.dll into the app directory is also needed
too bad the app doesn't pop-up any messages that it is needed![/quote]
Indeed! That's what I expected too.
Cheers