visual-studioqtqt5visual-studio-addins

Failed to load platform plugin "windows". Available platforms are : Error


I've created Qt project using Visual studio 2012 32 bit and Qt5 SDK with the help of Visual studio Qt addon. I'm using Windows 7 ultimate OS.

I have created QApplication GUI Project which basically uses the following libraries:

qtmain.lib
Qt5Core.lib
Qt5Gui.lib
Qt5Network.lib
Ws2_32.lib
Winhttp.lib
Winmm.lib
Qt5Widgets.lib
Qt5PlatformSupport.lib
imm32.lib

And I have succeed in building the application binary without any errors.

I’m trying to run this application on test machine windows 7 desktop having following dlls copied there:

icudt51.dll
icuin51.dll
icuuc51.dll
libEGL.dll
libGLESv2.dll
Qt5Core.dll
Qt5Network.dll
Qt5GUI.dll
Qt5Widgets.dll
qwindows.dll [copied from msvc2012\plugins\platform folder ]

I’m getting the error:

Failed to load platform plugin “windows”. Available Platform are : while trying to run the application.

What would i have missed? How to make it run on windows platform? Please Help me to troubleshoot this.

I've followed the links posted about this problem previously. but none of them are solved my problem. What configuration I am missing?


Solution

  • The platform plugin dlls would need to be put into the platforms subfolder and then it will work.