Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Platform "windows" not found...

    Installation and Deployment
    4
    4
    15885
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Powerpaule last edited by

      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

      1 Reply Last reply Reply Quote 0
      • D
        danielesd last edited by

        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

        D 1 Reply Last reply Reply Quote 1
        • S
          Sairam Patil last edited by

          @danielesd said in Platform "windows" not found...:

          Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)

          I was trying to follow these steps but, when I build workspace with Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin) it says undefined reference to 'qt_static_plugin_QWindowsIntegrationPlugin()'

          1 Reply Last reply Reply Quote 0
          • D
            DungeonLords @danielesd last edited by

            @danielesd In which place, file I should add Q_IMPORT_PLUGIN? I want to build Qt statically with bluetooth plugin.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post