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 start because it could not find or load the Qt platform plugin "windows"
Forum Updated to NodeBB v4.3 + New Features

Failed to start because it could not find or load the Qt platform plugin "windows"

Scheduled Pinned Locked Moved Solved Installation and Deployment
15 Posts 5 Posters 193.2k 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.
  • D Offline
    D Offline
    dannox
    wrote on last edited by A Former User
    #1

    Hi All,
    I follow this document and I put next to my executable platforms with the dlls inside.
    http://qt-project.org/wiki/Deploy_an_Application_on_Windows

    but I'm still geting this error:

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

    I build with visual studio 2010, using Qt5.3 on windows 7 ,configured with CMake.
    Any suggestion please?

    regards,
    Daniele

    Daniele Giunchi
    Framework Architect
    Software Developer

    1 Reply Last reply
    1
    • hskoglundH Online
      hskoglundH Online
      hskoglund
      wrote on last edited by
      #2

      Hi, I have a "blog post":http://www.tripleboot.org/?p=138 about this problem.
      It's for deploying a bare bones app but maybe it'll help you too.

      1 Reply Last reply
      2
      • D Offline
        D Offline
        dannox
        wrote on last edited by
        #3

        thank you, I check immediately.
        It's quite frustrating, I've copied those files almost everything, but surely I miss something.

        Daniele Giunchi
        Framework Architect
        Software Developer

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dannox
          wrote on last edited by
          #4

          unfortunately no good news.
          One question...with dependency walker I check if qwindows needs dependencies and it told me that it misses QtCore and QtGui, that are in the bin dir with the executable.
          When I launch the executable does it resolve the dll path for plugins considering QtCore and QtGui in bin dir, right?
          I would not want to change something in environmental variables.

          Daniele Giunchi
          Framework Architect
          Software Developer

          1 Reply Last reply
          0
          • JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #5

            Hi,

            • Can you post a screenshot of your deployment folder? (Upload it to somewhere like imgur or Google Drive and post a link here)
            • Run Dependency Walker on your .exe file, and click Profile -> Start Profiling… What do you see?

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

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dannox
              wrote on last edited by
              #6

              Hi

              • http://imgur.com/IOzEcGj inside platforms dir there is the content of platforms in Qt5.3/plugins/platform

              • http://pastebin.com/sfaLzXjW it's weird...

              LoadLibraryW("C:\Qt\Qt5.3.0\5.3\msvc2010_opengl\plugins\platforms\qwindowsd.dll") returned NULL. Error: The specified procedure could not be found (127).

              is the red line...but it's over there. :/

              Maybe depends on something else, infact if I open it separetely with DW, gives me an error, but there is no clue of what misses (a parte qtcore and qtgui, which should be loaded when the executable is launched)

              Daniele Giunchi
              Framework Architect
              Software Developer

              1 Reply Last reply
              0
              • hskoglundH Online
                hskoglundH Online
                hskoglund
                wrote on last edited by
                #7

                Hi, what happens if you change to compile your app in Release mode instead of Debug?

                EDIT: I forgot, also have you tried to compile a barebones app, i.e. just select a Widgets app and compile it without adding any code.

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  dannox
                  wrote on last edited by
                  #8

                  In Release the same thing without assert dialog.
                  And I've compiled several apps, with cmake or directly from QtCreator, and don't raise that error.

                  Instead from DW log I don't understand this section:

                  LoadLibraryW("C:\Qt\Qt5.3.0\5.3\msvc2010_opengl\plugins\platforms\qwindowsd.dll") called from "QT5CORED.DLL" at address 0x664F8B15.
                  Loaded "QWINDOWSD.DLL" at address 0x0F500000. Successfully hooked module.
                  Loaded "WINMM.DLL" at address 0x74570000. Successfully hooked module.

                  Unloaded "QWINDOWSD.DLL" at address 0x0F500000.
                  Unloaded "WINMM.DLL" at address 0x74570000.

                  LoadLibraryW("C:\Qt\Qt5.3.0\5.3\msvc2010_opengl\plugins\platforms\qwindowsd.dll") returned NULL. Error: The specified procedure could not be found (127).

                  Why the first time is ok, and then it unloads QWINDOWSD.DLL for trying to load it again unsuccessfully?

                  Daniele Giunchi
                  Framework Architect
                  Software Developer

                  1 Reply Last reply
                  0
                  • JKSHJ Offline
                    JKSHJ Offline
                    JKSH
                    Moderators
                    wrote on last edited by
                    #9

                    Questions:

                    Does your app run in Qt Creator?

                    What version of OpenGL does your PC support?

                    A few notes:

                    • You have created a Debug build. You should create a Release build for deployment.
                    • "Procedure not found" means that the DLL was found but an expected function was not found inside the DLL.
                      ** In Qt, this error is often encountered when you copy the wrong version of a DLL. Please confirm: Did you make sure you copied the DLLs from C:\Qt\Qt5.3.0\5.3\msvc2010_opengl instead of C:\Qt\Qt5.3.0\Tools\QtCreator?

                    Suggestion: Delete your current deployment folder, create a Release build, and follow the Wiki again -- "Initial deployment (Quick and dirty)". In particular, make sure you follow Steps #2.3 and #3 under -- you missed these steps before.

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

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      dannox
                      wrote on last edited by
                      #10

                      I run this app on msvc 10, after configuring with CMake 3.0

                      the version is 4.0

                      • I've already created the Release build just to check if I had the same error
                      • u right for the procedure ! :) I check if I mismatched the version but the path is correct :(

                      Ok, I'll try again, maybe I forgot something

                      thank you!

                      Daniele Giunchi
                      Framework Architect
                      Software Developer

                      1 Reply Last reply
                      0
                      • D Offline
                        D Offline
                        dannox
                        wrote on last edited by
                        #11

                        I did the procedure from scratch, so CMaked from the beginning and copy Qt/bin and plugins in the binary dir of my project , and... now works both in release and in debug.
                        Well... thank you all, actually I think that the build and deploy dirs got dirty with something not correct but I can't say really which file.
                        ciao! :)

                        Daniele Giunchi
                        Framework Architect
                        Software Developer

                        1 Reply Last reply
                        0
                        • JKSHJ Offline
                          JKSHJ Offline
                          JKSH
                          Moderators
                          wrote on last edited by
                          #12

                          Good to hear :) Happy coding!

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

                          1 Reply Last reply
                          0
                          • B Offline
                            B Offline
                            bapzangbo
                            wrote on last edited by
                            #13

                            i have do follow the instruction of hskoglund
                            im just copy platforms in \Qt\5.3\msvc2013_32\plugins\ and paste to folder debug contains application file .exe
                            my program run normally

                            thanks hskoglund

                            1 Reply Last reply
                            0
                            • J Offline
                              J Offline
                              Jack Jiang
                              wrote on last edited by
                              #14

                              [quote author="hskoglund" date="1404262881"]Hi, I have a "blog post":http://www.tripleboot.org/?p=138 about this problem.
                              It's for deploying a bare bones app but maybe it'll help you too.[/quote]

                              Thank you hskoglund! Your blog helped me to solve this problem.

                              1 Reply Last reply
                              0
                              • J Offline
                                J Offline
                                Jack Jiang
                                wrote on last edited by
                                #15

                                [quote author="hskoglund" date="1404262881"]Hi, I have a "blog post":http://www.tripleboot.org/?p=138 about this problem.
                                It's for deploying a bare bones app but maybe it'll help you too.[/quote]

                                Thank you hskoglund! Your blog helped me to solve this problem.

                                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