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. Failed to load platform plugin "windows".
QtWS25 Last Chance

Failed to load platform plugin "windows".

Scheduled Pinned Locked Moved Solved Installation and Deployment
20 Posts 13 Posters 70.3k Views
  • 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.
  • M Offline
    M Offline
    MByte
    wrote on 21 Oct 2012, 03:55 last edited by A Former User
    #1

    I built Qt5 64-bit with -platform win32-msvc2012 -opengl es2 -angle <path> on Windows 8.

    Whenever I try to compile and run a Qt program, I get the following error:
    @Failed to load platform plugin "windows".
    Available platforms are:
    minimal
    windows@

    If I build without ANGLE support, it works, but I need ANGLE to use OpenGL shaders.

    It wasn't doing this before, but now it seems to happen no matter what. I've tried a number of qt5 repository pulls from different dates, different ANGLE repository pulls... even a fresh install of Windows and I still get the same error.

    I traced a debug build, and it sees the platform plugin, but it seems that LoadLibrary is failing when trying to load it. Any ideas how to resolve this?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MByte
      wrote on 21 Oct 2012, 04:16 last edited by
      #2

      Actually, I found the problem. ANGLE's libEGL.dll also needed to be in the path, not just libGLESv2.dll.

      Thanks to toothrot in IRC for having me try Dependency Walker.

      F 1 Reply Last reply 14 Feb 2016, 14:22
      0
      • M Offline
        M Offline
        Macro
        wrote on 23 Oct 2012, 14:20 last edited by
        #3

        Cool.. :)

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MrNoway
          wrote on 8 Jan 2013, 18:18 last edited by
          #4

          it's the "libEGLd.dll" not the "libEGL.dll"

          but thanks, this was puzzling me.

          1 Reply Last reply
          0
          • N Offline
            N Offline
            napajejenunedk0
            wrote on 1 Feb 2013, 10:08 last edited by
            #5

            Which library depends on libEGL? libGLES or Qt5Widgets, Qt5Gui? Since, using Dependency Walker, neither my Qt 5 application's executable, nor the libraries it depends on, depend on libEGL. I presume it is loaded dynamically.

            1 Reply Last reply
            0
            • N Offline
              N Offline
              napajejenunedk0
              wrote on 9 Mar 2013, 19:47 last edited by
              #6

              I've found that it is qwindows.dll platform plugin that depends on libEGL.

              1 Reply Last reply
              0
              • D Offline
                D Offline
                d.mancic
                wrote on 24 Apr 2013, 08:47 last edited by
                #7

                Hi people,

                I have the same problem.

                I copied .exe file in separate folder, along with many .dll files.
                On the computer where I developed the application, everything works.

                However, on the other computers there is still a message:

                ///////////////////////////////////////////////////////////////////////
                Failed to load platform plugin "windows". Available platforms are:

                (Press Retry...)
                ///////////////////////////////////////////////////////////////////////

                I also included qwindowsd.dll.

                Can someone help?

                Thank you,

                Dusan

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  goblincoding
                  wrote on 24 Apr 2013, 08:54 last edited by
                  #8

                  See "this thread":http://qt-project.org/forums/viewthread/27056/#122634 for a list of dll's and folder structure.

                  http://www.goblincoding.com

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    d.mancic
                    wrote on 24 Apr 2013, 09:06 last edited by
                    #9

                    It helped me! The problem was in folder structure.

                    Thank you very much!

                    Dusan

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 24 Apr 2013, 09:32 last edited by
                      #10

                      Hi,

                      Have a look at the "deployment":http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html documentation.

                      Did you put your platform plugin in the platform subdir ? (Not in the plugins subdir)

                      And are you sure you want do deploy the debug version (unless it's a typo)? The debug runtime from visual studio are not redistributable.

                      Hope it helps

                      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
                      • D Offline
                        D Offline
                        d.mancic
                        wrote on 24 Apr 2013, 09:44 last edited by
                        #11

                        I solved that already (sent in previous email :)), but thanks anyway!

                        1 Reply Last reply
                        0
                        • C Offline
                          C Offline
                          CarlStenquist
                          wrote on 19 Sept 2013, 15:22 last edited by
                          #12

                          THANK YOU MByte! I am using libGLESv2.dll and was having the exact same problem: The pop-up

                          ..could not find or load the Qt platform plugin windows..

                          when trying to run the EXE-file. I could not resolve this until adding libEGL.dll to the same folder as my .EXE.
                          How is one supposed to figure this out?
                          This needs be explained somewhere - It took me 4 h. to find this!
                          Someone please add to QT documentation!
                          Carl Stenquist, Renesas

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

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            mphair
                            wrote on 21 Feb 2014, 11:58 last edited by
                            #13

                            I still cannot solve this issue. I've added qwindows.dll and libEGL.dll and any other dll I could find and I still get the same popup error.

                            1 Reply Last reply
                            0
                            • C Offline
                              C Offline
                              CarlStenquist
                              wrote on 21 Feb 2014, 17:05 last edited by
                              #14
                              1. Look at what DLLs are loaded when you run the code in QT-Creator.
                              2. The DLLs must be for the sytem you are running, that is 32 OR 64 bit; the right version.
                              3. For my app, I needed qwindows.dll, qminimal.dll, qoffscreen.dll in a "platforms" directory under the executable.
                                But all such info seems missing in the QT documentation.
                                =Carl

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

                              1 Reply Last reply
                              0
                              • JKSHJ Offline
                                JKSHJ Offline
                                JKSH
                                Moderators
                                wrote on 21 Feb 2014, 23:55 last edited by
                                #15

                                [quote author="mphair" date="1392983929"]I still cannot solve this issue. I've added qwindows.dll and libEGL.dll and any other dll I could find and I still get the same popup error.[/quote]Hi,

                                Did you put them in the correct folders? See http://qt-project.org/wiki/Deploy_an_Application_on_Windows

                                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                                1 Reply Last reply
                                0
                                • C Offline
                                  C Offline
                                  CarlStenquist
                                  wrote on 24 Feb 2014, 19:15 last edited by
                                  #16

                                  JKSH
                                  How did you find that page - other than by through a search? I cannot see a link to it on the Wiki Home page. http://qt-project.org/wiki

                                  Is the page so new that it is not linked to the main page yet?
                                  =Carl

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

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on 24 Feb 2014, 21:22 last edited by
                                    #17

                                    He wrote it :)

                                    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
                                    • M Offline
                                      M Offline
                                      MaxteN
                                      wrote on 9 Jun 2014, 16:24 last edited by
                                      #18

                                      Worked for me after I did the following:

                                      1. include "$(QTDIR)\include\QtANGLE" to the project
                                      2. include "libEGL.dll" in the .exe directory (libEGLd.dll if debug)
                                      3. put "qwindows.dll" in "platforms\qwindows.dll"
                                        bq. See this thread [qt-project.org] for a list of dll’s and folder structure.bq.

                                      THANKS ALL!

                                      1 Reply Last reply
                                      0
                                      • M MByte
                                        21 Oct 2012, 04:16

                                        Actually, I found the problem. ANGLE's libEGL.dll also needed to be in the path, not just libGLESv2.dll.

                                        Thanks to toothrot in IRC for having me try Dependency Walker.

                                        F Offline
                                        F Offline
                                        Filip9322
                                        wrote on 14 Feb 2016, 14:22 last edited by
                                        #19

                                        @MByte https://www.youtube.com/watch?v=eHlDAT-haE0

                                        1 Reply Last reply
                                        0
                                        • D Offline
                                          D Offline
                                          Dave W
                                          wrote on 18 Jun 2016, 21:02 last edited by
                                          #20

                                          None of these solutions works on a Win 8.0 machine. I'm trying to use Harbour with QT which has proven to be nothing but a complete waste of time and effort. Countless hours spent chasing BS issues that should never exist. I have the dll's in the folders described and it does not work! In my opinion, do not waste your time with Harbour and QT. I also hate C++ so QT is not for me. I'm going back to a real development environment, .NET!!!!!!

                                          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