Platform "windows" not found...



  • Hi,
    i have compiled Qt 5.0.2 with Visual Studio 2012 for x86 and with opengl.
    But there is a problem with the platforms/qwindows.dll. Creating a Qt Application works well,
    but when I start it, it tells me "Failed to load platform plugin 'windows'. Available platforms are:" (there are no platforms listed)
    When I keep the compiled QT version at the place where it was built into (in the visual studio program path), it works, but I think thats not the way it is meant to be.
    When I use the pre-compiled Version from the qt download page everything works well. So is there missing some thing to configure?
    Thanks a lot



  • Yesterday, I had the same problem with Visual Studio 2008. The solution was:

    Add the following lines to your application code:
    #include <QtPlugin>
    Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)

    Link these libs to your application:
    opengl32.lib
    imm32.lib
    winmm.lib
    Ws2_32.lib
    Qt5PlatformSupport.lib
    qwindows.lib


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.