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. [SOLVED]Failed to load platform plugin "windows"

[SOLVED]Failed to load platform plugin "windows"

Scheduled Pinned Locked Moved Installation and Deployment
47 Posts 17 Posters 178.0k 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.
  • A Offline
    A Offline
    abraker95
    wrote on 14 Jun 2014, 22:35 last edited by
    #37

    I wonder why the IDE doesn't set the platform directory by default.

    1 Reply Last reply
    0
    • H Online
      H Online
      hskoglund
      wrote on 14 Jun 2014, 22:52 last edited by
      #38

      It does when you install Qt, the installer writes the plugin path into Qt5Core.dll and qmake.exe.

      1 Reply Last reply
      0
      • F Offline
        F Offline
        frankiefrank
        wrote on 20 Jul 2014, 11:19 last edited by
        #39

        hskoglund - that last comment really helped me out! I was changing Qt versions, copied my DLLs (including Qt5Cored.dll) to the deployment target location. After a while I needed to reinstall the Qt version and I didn't have a clue why it wouldn't work - until I read your comment about the installer's change.

        "Roads? Where we're going, we don't need roads."

        1 Reply Last reply
        0
        • S Offline
          S Offline
          silviutp
          wrote on 17 Sept 2014, 09:02 last edited by
          #40

          I have also had headakes with my app which worked in Qt Creator and on my computer but not on other computer.
          The problem was that I was not using the correct qwindows.dll. I used the version from P:\Qt\Qt5.1.1-mingw\Tools\QtCreator\bin\plugins\platforms.
          The correct version is in P:\Qt\Qt5.1.1-mingw\5.1.1\mingw48_32\plugins\platforms
          As hskoglund said, you should'n probably use dlls from qtcreator folder.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Saved
            wrote on 21 Apr 2015, 14:10 last edited by
            #41

            Hello,

            I have a similar problem. I've read some stuff, but nothing works for me.

            I've deploy my application with windeployqt (Readed here and here). On my PC the solution works fine. Another PC has following error message:

            This application failed to start because it could not find or load the Qt platform plugin "windows".
            
            Reinstalling the application may fix this problem.
            

            Following steps I've tried:

            1. Created with platforms sub-folder. The error message was extended in this case to:

              This application failed to start because it could not find or load the Qt platform plugin "windows".
              
              Available platform plugins are: minimal, offscreen, windows, windows.,
              
              Reinstalling the application may fix this problem.
              
            2. Used dependency walker for checking the dlls.

              IESHIMS.DLL		-> also missing on my PC
              SHLWAPI.DLL
              IEFRAME.DLL		-> this one is the deley-load depenceny (see error message below)
              
              Warning: At least one delay-load dependency module was not found.
              Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.
              

              Copying the ieframe.dll from C:\Windows\System32 to release folder will also not fix it.

            3. Checked this. No success.

            4. Trying to add to main.cpp

              QCoreApplication::addLibraryPath("./");
              QCoreApplication::addLibraryPath("./platforms");
              

              No success.

            5. Also checked this thread.

            6. Also tried to add libEGL.dll to the package. No success.

            I developing on Windows XP with Qt 5.4 and MinGW 4.91 32 bit compiler. Some test PC's are Windows 7.

            Has anyone hints for me? The message "no windows plugin. Available plugins windows, windows" is also strange.

            J 1 Reply Last reply 21 Apr 2015, 14:16
            0
            • S Saved
              21 Apr 2015, 14:10

              Hello,

              I have a similar problem. I've read some stuff, but nothing works for me.

              I've deploy my application with windeployqt (Readed here and here). On my PC the solution works fine. Another PC has following error message:

              This application failed to start because it could not find or load the Qt platform plugin "windows".
              
              Reinstalling the application may fix this problem.
              

              Following steps I've tried:

              1. Created with platforms sub-folder. The error message was extended in this case to:

                This application failed to start because it could not find or load the Qt platform plugin "windows".
                
                Available platform plugins are: minimal, offscreen, windows, windows.,
                
                Reinstalling the application may fix this problem.
                
              2. Used dependency walker for checking the dlls.

                IESHIMS.DLL		-> also missing on my PC
                SHLWAPI.DLL
                IEFRAME.DLL		-> this one is the deley-load depenceny (see error message below)
                
                Warning: At least one delay-load dependency module was not found.
                Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.
                

                Copying the ieframe.dll from C:\Windows\System32 to release folder will also not fix it.

              3. Checked this. No success.

              4. Trying to add to main.cpp

                QCoreApplication::addLibraryPath("./");
                QCoreApplication::addLibraryPath("./platforms");
                

                No success.

              5. Also checked this thread.

              6. Also tried to add libEGL.dll to the package. No success.

              I developing on Windows XP with Qt 5.4 and MinGW 4.91 32 bit compiler. Some test PC's are Windows 7.

              Has anyone hints for me? The message "no windows plugin. Available plugins windows, windows" is also strange.

              J Offline
              J Offline
              JKSH
              Moderators
              wrote on 21 Apr 2015, 14:16 last edited by JKSH
              #42

              Hi,

              @Saved said:

              The message "no windows plugin. Available plugins windows, windows" is also strange.

              That means your program found the qwindows.dll plugin, but could not load it. Usually, it's because a dependency is missing. Follow https://wiki.qt.io/Deploy_an_Application_on_Windows carefully.

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

              1 Reply Last reply
              1
              • S Offline
                S Offline
                Saved
                wrote on 22 Apr 2015, 08:32 last edited by Saved
                #43

                Thank you JKSH for your fast reply.

                I've pointed out that my app works fine on all systems with platforms sub-folder expect my usual test environment in a VM.

                Regards.

                J 1 Reply Last reply 22 Apr 2015, 14:45
                0
                • S Saved
                  22 Apr 2015, 08:32

                  Thank you JKSH for your fast reply.

                  I've pointed out that my app works fine on all systems with platforms sub-folder expect my usual test environment in a VM.

                  Regards.

                  J Offline
                  J Offline
                  JKSH
                  Moderators
                  wrote on 22 Apr 2015, 14:45 last edited by
                  #44

                  @Saved said:

                  Thank you JKSH for your fast reply.

                  I've pointed out that my app works fine on all systems with platforms sub-folder expect my usual test environment in a VM.

                  Regards.

                  You're welcome.

                  I'm not quite sure where you're at now: Are you still facing the same problem? Have you followed the wiki instructions for your VM?

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

                  S 1 Reply Last reply 23 Apr 2015, 14:43
                  0
                  • J JKSH
                    22 Apr 2015, 14:45

                    @Saved said:

                    Thank you JKSH for your fast reply.

                    I've pointed out that my app works fine on all systems with platforms sub-folder expect my usual test environment in a VM.

                    Regards.

                    You're welcome.

                    I'm not quite sure where you're at now: Are you still facing the same problem? Have you followed the wiki instructions for your VM?

                    S Offline
                    S Offline
                    Saved
                    wrote on 23 Apr 2015, 14:43 last edited by
                    #45

                    @JKSH

                    @Saved said:

                    I've pointed out that my app works fine on all systems with platforms sub-folder expect my usual test environment in a VM.

                    I did meant I've find out... Sorry.
                    My problem is solved now.

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      Dave W
                      wrote on 7 Feb 2016, 06:23 last edited by
                      #46

                      I have tried all these solutions on a new windows 10 machine and nothing has worked yet. I have migrated some old Clipper code to Harbour with QT. I was able to compile and run it fine on an XP machine. When I moved the executable folder from the XP machine to the Win10 machine, the program still ran fine. After I compile it on the Win 10 machine, it no longer runs. Obviously, something in the build process is not working correctly.

                      1 Reply Last reply
                      0
                      • mrjjM Offline
                        mrjjM Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on 7 Feb 2016, 09:29 last edited by
                        #47

                        Hi
                        " After I compile it on the Win 10 machine, it no longer runs. "

                        It's a bit unclear what stopped working. When you compile
                        on win 10, it will not even run in Creator?
                        Or do you mean run from deploy folder?
                        (standalone)

                        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