Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Platform "windows" not found...
Qt 6.11 is out! See what's new in the release blog

Platform "windows" not found...

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 4 Posters 16.4k Views 1 Watching
  • 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 Offline
    P Offline
    Powerpaule
    wrote on last edited by
    #1

    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
    0
    • D Offline
      D Offline
      danielesd
      wrote on last edited by
      #2

      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
      1
      • S Offline
        S Offline
        Sairam Patil
        wrote on last edited by
        #3

        @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
        0
        • D danielesd

          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 Offline
          D Offline
          DungeonLords
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved