I am writing a Qt application on Windows using Visual Studio 2012.
Using the Qt Add-in and a custom built static distribution of Qt 5.0.2.
I am running into the dreaded "Failed to load platform plugin windows"
error whenever I run the application.
I have added the following to the linker input:
imm32.lib
winmm.lib
Ws2_32.lib
qtmaind.lib
Qt5Cored.lib
Qt5Guid.lib
Qt5Widgetsd.lib
At first I thought that maybe I should add "qwindowsd.lib" to that list as well however that did not fix the problem. What do I need to do in order to make my application run?
For dynamic build only: Make sure you move the qwindows.dll to the following directory:
yourapp.exe
Qt5Core.dll
...
platforms/qwindows.dll
...
Note that the plugins directory is missing! You put all the needed folders from QT_BASE/.../plugins/* directly together with your binaries. BTW: I did not need libEGL.dll, but my application almost has no GUI.
My source: http://qt-project.org/forums/viewthread/27056/#122588