Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Failed to load platform plugin "windows". Available Platform are : error [solved]
Forum Updated to NodeBB v4.3 + New Features

Failed to load platform plugin "windows". Available Platform are : error [solved]

Scheduled Pinned Locked Moved General and Desktop
12 Posts 4 Posters 15.1k 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.
  • R Offline
    R Offline
    Raveendra
    wrote on last edited by
    #1

    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.lib

    and 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 :(

    1 Reply Last reply
    0
    • raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      where di you put the qwindows.dll file? It needs to remain in plugins\platform (relative to your application binary)!

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Raveendra
        wrote on last edited by
        #3

        followed as u said. but still its giving same errors.

        1 Reply Last reply
        0
        • raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          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

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on last edited by
            #5

            [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

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              There's also the "deployment guide":http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html to help you with that

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • R Offline
                R Offline
                Raveendra
                wrote on last edited by
                #7

                I've installed Qt5.1.0 SDK for MSVC12-32bit RC on my development computer. I'm not finding qtbase folder within <qt-dir>

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  search for the plugins/platforms folder which should be next to bin, doc etc...

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    Raveendra
                    wrote on last edited by
                    #9

                    i found plugins/platform folder under msvc2012 folder

                    1 Reply Last reply
                    0
                    • raven-worxR Offline
                      raven-worxR Offline
                      raven-worx
                      Moderators
                      wrote on last edited by
                      #10

                      [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.

                      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                      If you have a question please use the forum so others can benefit from the solution in the future

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        Raveendra
                        wrote on last edited by
                        #11

                        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 :)

                        1 Reply Last reply
                        0
                        • C Offline
                          C Offline
                          CarlStenquist
                          wrote on last edited by
                          #12

                          If anyone still struggling w this, see posting
                          http://qt-project.org/forums/viewthread/21269

                          P.S. I'm not really a "lab rat". Just an applications engineer.

                          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