Failed to load platform plugin "windows". Available Platform are : error [solved]
-
I'm creating Qt project with Visual studio 2012 and Qt5 SDK using Visual studio Qt addOn .
I have created QApplication Project which basically uses
qtmain.lib
Qt5Core.lib
Qt5Gui.lib
Qt5Network.lib
Ws2_32.lib
Winhttp.lib
Winmm.lib
Qt5Widgets.lib
Qt5PlatformSupport.lib
imm32.liband i was able to build the binary .
i'm trying to run this application on windows 7 desktop. having following dlls
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 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 :( -
where di you put the qwindows.dll file? It needs to remain in plugins\platform (relative to your application binary)!
-
followed as u said. but still its giving same errors.
-
you should read my post again:
[quote author="raven-worx" date="1372426741"]
It needs to remain in plugins\platform (relative to your application binary)![/quote]
--> plugins\platform\qwindows.dll -
[quote author="Raveendra" date="1372426402"]
qwindows.dll [copied from msvc2012\plugins\platform folder ]
[/quote]
where is this "msvc2012" folder?! The platform DLLs should be located in <qt-dir>/qtbase/plugins/platforms -
There's also the "deployment guide":http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html to help you with that
-
I've installed Qt5.1.0 SDK for MSVC12-32bit RC on my development computer. I'm not finding qtbase folder within <qt-dir>
-
search for the plugins/platforms folder which should be next to bin, doc etc...
-
i found plugins/platform folder under msvc2012 folder
-
[quote author="Raveendra" date="1372429653"] I'm not finding qtbase folder within <qt-dir>[/quote]
yes..sorry my fault. i only use the source version of Qt not the pre-compiled packages. You're right. -
i have set the environment variable
QT_QPA_PLATFORM_PLUGIN_PATH = C:\Qt\Qt5.1.0\5.1.0-rc1\msvc2012\plugins\platforms
i meant path to qtwindows.dll
this solved my problem and exe is running fine now :)
-
If anyone still struggling w this, see posting
http://qt-project.org/forums/viewthread/21269