Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. Unable to find the platform plugin while deploying application
Forum Update on Monday, May 27th 2025

Unable to find the platform plugin while deploying application

Scheduled Pinned Locked Moved Solved C++ Gurus
11 Posts 3 Posters 3.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.
  • P Offline
    P Offline
    Please_Help_me_D
    wrote on 30 Jan 2020, 01:23 last edited by Please_Help_me_D
    #1

    Hi,

    I tried to deploy test application built with MSVC 2017 x64 on WIndows 10 x64 but windeployqt.exe says:

    • Adding Qt5Network for qmldbg_debugger.dll
    • Adding Qt5Gui for qmldbg_inspector.dll
    • Direct dependencies: Qt5Core
    • All dependencies : Qt5Core
    • To be deployed : Qt5Core Qt5Gui Qt5Network Qt5Qml Qt5Quick
    • Unable to find the platform plugin.

    I read some sources in that topic such as here but I dont'use MinGW and still have such problem
    Qt version 5.12.6
    My Qt configuration:
    887f6f87-218a-435a-9ed8-4471a37a09b9-image.png

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hskoglund
      wrote on 30 Jan 2020, 13:29 last edited by
      #2

      Hi, you don't really need windeployqt to make your Qt app run on another Windows 10 computer. Windeployqt iis a convenient tool but you can also copy the needed .dlls by yourself.

      One way: first start your app, then download ListDLLs. Use it to create a list of all the .dlls your app is using.
      Copy all the .dlls that are not from C:\Windows\System32 into the same folder as your .exe file. (The plugin .dlls need to be in their own subdirectories)

      Go to the other Windows 10 computer, install the MSVC2017 64-bit redistributable. Then copy the folder from your development machine. With a bit of luck your app should start.

      P 2 Replies Last reply 30 Jan 2020, 16:05
      3
      • H hskoglund
        30 Jan 2020, 13:29

        Hi, you don't really need windeployqt to make your Qt app run on another Windows 10 computer. Windeployqt iis a convenient tool but you can also copy the needed .dlls by yourself.

        One way: first start your app, then download ListDLLs. Use it to create a list of all the .dlls your app is using.
        Copy all the .dlls that are not from C:\Windows\System32 into the same folder as your .exe file. (The plugin .dlls need to be in their own subdirectories)

        Go to the other Windows 10 computer, install the MSVC2017 64-bit redistributable. Then copy the folder from your development machine. With a bit of luck your app should start.

        P Offline
        P Offline
        Please_Help_me_D
        wrote on 30 Jan 2020, 16:05 last edited by
        #3

        @hskoglund Thank you!
        I have not tried it yet but I'm going to
        I believe that should work

        1 Reply Last reply
        0
        • K Offline
          K Offline
          Konstantin Tokarev
          wrote on 30 Jan 2020, 18:01 last edited by
          #4

          Note that some dlls may be loaded lazily when particular feature of application is in use, e.g. Qt Multimedia plugins may be loaded only when you play something, or OpenSSL loaded when first https request is made

          1 Reply Last reply
          2
          • H hskoglund
            30 Jan 2020, 13:29

            Hi, you don't really need windeployqt to make your Qt app run on another Windows 10 computer. Windeployqt iis a convenient tool but you can also copy the needed .dlls by yourself.

            One way: first start your app, then download ListDLLs. Use it to create a list of all the .dlls your app is using.
            Copy all the .dlls that are not from C:\Windows\System32 into the same folder as your .exe file. (The plugin .dlls need to be in their own subdirectories)

            Go to the other Windows 10 computer, install the MSVC2017 64-bit redistributable. Then copy the folder from your development machine. With a bit of luck your app should start.

            P Offline
            P Offline
            Please_Help_me_D
            wrote on 3 Feb 2020, 17:28 last edited by
            #5

            @hskoglund I'm trying to use ListDLLs. I open cmd command line and go to the folder where my .exe is. Then I run the following command:

            • C:\apps\ListDlls\listdlls C:\Users\tasik\Documents\Qt_Projects\build-OpenMP_proba-Desktop_x86_windows_msvc2017_pe_64bit-Release\release\OpenMP_proba.exe

            Where:

            • C:\apps\ListDlls\listdlls - path and .exe of listdlls
            • C:\Users\tasik\Documents\Qt_Projects\build-OpenMP_proba-Desktop_x86_windows_msvc2017_pe_64bit-Release\release\OpenMP_proba.exe - my exe

            But I only receive:
            Listdlls v3.2 - Listdlls
            Copyright (C) 1997-2016 Mark Russinovich
            Sysinternals

            No matching processes were found.

            H 1 Reply Last reply 3 Feb 2020, 17:44
            0
            • P Please_Help_me_D
              3 Feb 2020, 17:28

              @hskoglund I'm trying to use ListDLLs. I open cmd command line and go to the folder where my .exe is. Then I run the following command:

              • C:\apps\ListDlls\listdlls C:\Users\tasik\Documents\Qt_Projects\build-OpenMP_proba-Desktop_x86_windows_msvc2017_pe_64bit-Release\release\OpenMP_proba.exe

              Where:

              • C:\apps\ListDlls\listdlls - path and .exe of listdlls
              • C:\Users\tasik\Documents\Qt_Projects\build-OpenMP_proba-Desktop_x86_windows_msvc2017_pe_64bit-Release\release\OpenMP_proba.exe - my exe

              But I only receive:
              Listdlls v3.2 - Listdlls
              Copyright (C) 1997-2016 Mark Russinovich
              Sysinternals

              No matching processes were found.

              H Offline
              H Offline
              hskoglund
              wrote on 3 Feb 2020, 17:44 last edited by hskoglund 2 Mar 2020, 17:45
              #6

              @Please_Help_me_D ListDLLs only care about the name of the program, not the path, so try:

              C:\apps\ListDlls\listdlls Open
              

              (also you don't have to type in all the letters of the program name :-)

              Edit: also make sure that your program is running before starting ListDLLs

              P 1 Reply Last reply 3 Feb 2020, 17:58
              0
              • H hskoglund
                3 Feb 2020, 17:44

                @Please_Help_me_D ListDLLs only care about the name of the program, not the path, so try:

                C:\apps\ListDlls\listdlls Open
                

                (also you don't have to type in all the letters of the program name :-)

                Edit: also make sure that your program is running before starting ListDLLs

                P Offline
                P Offline
                Please_Help_me_D
                wrote on 3 Feb 2020, 17:58 last edited by Please_Help_me_D 2 Mar 2020, 18:00
                #7

                @hskoglund this doesn't work either :(

                C:\apps\ListDlls\listdlls Open
                

                @hskoglund said in Unable to find the platform plugin while deploying application:

                also make sure that your program is running before starting ListDLLs

                Didn't understand that. COuld you please explain a little bit more?
                If I just "double click" on OpenMP_proba.exe I get an error that I don't have some Qt ddl's.
                This .exe file is created after I compile it in Qt in release mode.
                By the way I use MSVC x64 compilator but Listdlls64 also doesn't work (is Listdlls64 is used to compile 64 bit apps?)

                1 Reply Last reply
                0
                • H Offline
                  H Offline
                  hskoglund
                  wrote on 3 Feb 2020, 18:23 last edited by
                  #8

                  You do not need to be able to run your program by double clicking on it, it's sufficient if can run your program from inside Qt Creator.
                  Also it doesn't matter if you use ListDLLs.exe or ListDLLs64.exe, they'll give you the same result.

                  P 2 Replies Last reply 3 Feb 2020, 18:28
                  0
                  • H hskoglund
                    3 Feb 2020, 18:23

                    You do not need to be able to run your program by double clicking on it, it's sufficient if can run your program from inside Qt Creator.
                    Also it doesn't matter if you use ListDLLs.exe or ListDLLs64.exe, they'll give you the same result.

                    P Offline
                    P Offline
                    Please_Help_me_D
                    wrote on 3 Feb 2020, 18:28 last edited by Please_Help_me_D 2 Mar 2020, 18:36
                    #9

                    @hskoglund yes, something strange is going on on my pc :)
                    don't know how to lauch it correctly
                    I just tried to run listdlls with other .exe files but the same error I get. But I can run for example:

                    C:\apps\ListDlls\Listdlls O
                    

                    The output:

                    Listdlls v3.2 - Listdlls
                    Copyright (C) 1997-2016 Mark Russinovich
                    Sysinternals
                    
                    ------------------------------------------------------------------------------
                    OneDrive.exe pid: 8332
                    Command line: "C:\Users\tasik\...\OneDrive.exe" /background
                    
                    Base                Size      Path
                    0x0000000000f40000  0x185000  C:\Users\tasik\...\OneDrive.exe
                    

                    etc.

                    1 Reply Last reply
                    0
                    • H hskoglund
                      3 Feb 2020, 18:23

                      You do not need to be able to run your program by double clicking on it, it's sufficient if can run your program from inside Qt Creator.
                      Also it doesn't matter if you use ListDLLs.exe or ListDLLs64.exe, they'll give you the same result.

                      P Offline
                      P Offline
                      Please_Help_me_D
                      wrote on 3 Feb 2020, 19:23 last edited by
                      #10

                      @hskoglund Well I could lauch it correctly only when I lauched it in Qt and while it was compiling I ran listdlls. But my .exe runs only 2 second so I have only 2 second to launch listdlls. Is there is a way use listdlls in other way?

                      1 Reply Last reply
                      0
                      • H Offline
                        H Offline
                        hskoglund
                        wrote on 3 Feb 2020, 20:16 last edited by
                        #11

                        If your program starts, then you can put in a delay somewhere, for example:

                        for (;;);
                        

                        so that you will have time to run ListDLLs

                        1 Reply Last reply
                        2

                        1/11

                        30 Jan 2020, 01:23

                        • Login

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