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. Still trying to Deploy... using windeployqt.exe
Forum Updated to NodeBB v4.3 + New Features

Still trying to Deploy... using windeployqt.exe

Scheduled Pinned Locked Moved Solved General and Desktop
16 Posts 8 Posters 6.3k Views 3 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.
  • webzoidW Offline
    webzoidW Offline
    webzoid
    wrote on last edited by
    #2

    @LeLev Have you checked Windows Event Viewer to see if any errors are reported there?

    I have had instances where Qt applications fail to start on other machines - usually, the solution comes from either installing Microsoft Visual C++ Runtime or ensuring that I have the platforms\qwindows.dll files in the application directory.

    ODБOïO 1 Reply Last reply
    3
    • webzoidW webzoid

      @LeLev Have you checked Windows Event Viewer to see if any errors are reported there?

      I have had instances where Qt applications fail to start on other machines - usually, the solution comes from either installing Microsoft Visual C++ Runtime or ensuring that I have the platforms\qwindows.dll files in the application directory.

      ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #3

      @webzoid Thx,I haven't thought about Windows Event Viewer.. , I will check then give you a feedback tomorrow.

      K 1 Reply Last reply
      0
      • ODБOïO ODБOï

        @webzoid Thx,I haven't thought about Windows Event Viewer.. , I will check then give you a feedback tomorrow.

        K Offline
        K Offline
        kenchan
        wrote on last edited by
        #4

        @LeLev Which "2 or 3" dll's are missing then? are they always the same one or is a random thing?
        how do you run windeployqt and how do your build paths look in relation to it when you run it?
        As @LeLev says you may need to copy MVC runtime dll and any other stuff that windeployqt does not now about.

        1 Reply Last reply
        1
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Qt Champions 2022
          wrote on last edited by
          #5

          If I understand correctly, when you run the app on windows no error message or no UI comes. It means that your application is running and UI does not come up. Most probably Qt 'platforms' plugins could be missing in the new box. Just ensure that your copy these platforms plugin directory also.

          Dheerendra
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          1 Reply Last reply
          3
          • ODБOïO Offline
            ODБOïO Offline
            ODБOï
            wrote on last edited by
            #6

            Thank you for answers

            @webzoid unfortunately nothing interesting in Windows Event Viewer.

            @kenchan So with windeployqt.exe i had :

            bearer / iconengines / imageformats platforminputcontexts / platforms / qmltooling / styles / translations
            D3Dcompiler_47.dll / libEGL.dll / libgcc_s_dw2-1.dll / libGLESV2.dll / libstdc++-6.dll / libwinpthread-1.dll / opengl32sw.dll /Qt5Core.dll / Qt5Gui.dll / Qt5Network.dll / Qt5Qml.dll / Qt5Quick.dll / Qt5Svg.dll / Qt5Widgets.dll / myApp.exe

            With this my application was not running (and no error message ) even on my developpement pc

            I sorted, now i have :
            bearer / iconengines / imageformats platforminputcontexts / platforms / qmltooling / styles / translations
            libstdc++-6.dll / Qt5Core.dll / Qt5Gui.dll / Qt5Network.dll / Qt5Quick.dll / Qt5QuickControls2.dll /Qt5QuickTemplates2.dll / myApp.exe

            and now my app starts correctly, but only on my dev pc

            @dheerendra said in Still trying to Deploy... using windeployqt.exe:

            It means that your application is running and UI does not come up

            As i said application is not visible in Process Explorer, so is it possible ?
            and inside platforms there are : qwindows.dll/qwebgl.dll/qoffscreen.dll/qminimal.dll

            Thx

            K 1 Reply Last reply
            0
            • ODБOïO ODБOï

              Thank you for answers

              @webzoid unfortunately nothing interesting in Windows Event Viewer.

              @kenchan So with windeployqt.exe i had :

              bearer / iconengines / imageformats platforminputcontexts / platforms / qmltooling / styles / translations
              D3Dcompiler_47.dll / libEGL.dll / libgcc_s_dw2-1.dll / libGLESV2.dll / libstdc++-6.dll / libwinpthread-1.dll / opengl32sw.dll /Qt5Core.dll / Qt5Gui.dll / Qt5Network.dll / Qt5Qml.dll / Qt5Quick.dll / Qt5Svg.dll / Qt5Widgets.dll / myApp.exe

              With this my application was not running (and no error message ) even on my developpement pc

              I sorted, now i have :
              bearer / iconengines / imageformats platforminputcontexts / platforms / qmltooling / styles / translations
              libstdc++-6.dll / Qt5Core.dll / Qt5Gui.dll / Qt5Network.dll / Qt5Quick.dll / Qt5QuickControls2.dll /Qt5QuickTemplates2.dll / myApp.exe

              and now my app starts correctly, but only on my dev pc

              @dheerendra said in Still trying to Deploy... using windeployqt.exe:

              It means that your application is running and UI does not come up

              As i said application is not visible in Process Explorer, so is it possible ?
              and inside platforms there are : qwindows.dll/qwebgl.dll/qoffscreen.dll/qminimal.dll

              Thx

              K Offline
              K Offline
              kenchan
              wrote on last edited by
              #7

              @LeLev have you tried running procmon with your app? it might give you a clue as what it is doing an when it dies.
              https://technet.microsoft.com/sysinternals/processmonitor.aspx

              ODБOïO 1 Reply Last reply
              1
              • K kenchan

                @LeLev have you tried running procmon with your app? it might give you a clue as what it is doing an when it dies.
                https://technet.microsoft.com/sysinternals/processmonitor.aspx

                ODБOïO Offline
                ODБOïO Offline
                ODБOï
                wrote on last edited by ODБOï
                #8

                @kenchan THX.
                There are more than 1000 operations about my application when i run procmon and then try to run my app.

                Most of time result is SUCCESS

                But i have this :
                OPERATION : CreateFile
                PATH :C:\Users\lev\Desktop\winDep\QtQuick.2.8
                RESULT: NAME NOT FOUND Desired Access: Read
                OPERATION :CreateFile
                PATH : C:\Users\lev\Desktop\winDep\qml\QtQuick.2.8
                RESULT : PATH NOT FOUND Desired Access: Read Attributes
                OPERATION: CreateFile
                PATH : C:\Users\lev\Desktop\winDep\QtQuick.2 NAME NOT FOUND Desired Access: Read Attributes,
                OPERATION: CreateFile
                PATH : C:\Users\lev\Desktop\winDep\QtQuick\Window.2.2 PATH NOT FOUND

                I have PATH NOT FOUND on every Qt module and even my Classes

                in my code i have

                qmlRegisterType<ClientCN16K>("com.Meca.ua.cn16k",1,0,"MecaUAClient");
                qmlRegisterType<Machine>("com.Meca.ua.cn16k",1,0,"Machine");
                

                and procmon says :

                OPERATION : CreateFile
                PATH: C:\Users\lev\Desktop\winDep\com\Meca\ua\cn16k.1.0
                RESULT : PATH NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

                OPERATION CreateFile
                PATH :C:\Users\lev\Desktop\winDep\com\Meca\ua\cn16k.1.0
                RESULT : ATH NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

                OPERATION CreateFile
                PATH :C:\Users\lev\Desktop\winDep\com\Meca\ua.1.0\cn16k
                RESULT : PATH NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

                ...

                K 1 Reply Last reply
                1
                • ODБOïO ODБOï

                  @kenchan THX.
                  There are more than 1000 operations about my application when i run procmon and then try to run my app.

                  Most of time result is SUCCESS

                  But i have this :
                  OPERATION : CreateFile
                  PATH :C:\Users\lev\Desktop\winDep\QtQuick.2.8
                  RESULT: NAME NOT FOUND Desired Access: Read
                  OPERATION :CreateFile
                  PATH : C:\Users\lev\Desktop\winDep\qml\QtQuick.2.8
                  RESULT : PATH NOT FOUND Desired Access: Read Attributes
                  OPERATION: CreateFile
                  PATH : C:\Users\lev\Desktop\winDep\QtQuick.2 NAME NOT FOUND Desired Access: Read Attributes,
                  OPERATION: CreateFile
                  PATH : C:\Users\lev\Desktop\winDep\QtQuick\Window.2.2 PATH NOT FOUND

                  I have PATH NOT FOUND on every Qt module and even my Classes

                  in my code i have

                  qmlRegisterType<ClientCN16K>("com.Meca.ua.cn16k",1,0,"MecaUAClient");
                  qmlRegisterType<Machine>("com.Meca.ua.cn16k",1,0,"Machine");
                  

                  and procmon says :

                  OPERATION : CreateFile
                  PATH: C:\Users\lev\Desktop\winDep\com\Meca\ua\cn16k.1.0
                  RESULT : PATH NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

                  OPERATION CreateFile
                  PATH :C:\Users\lev\Desktop\winDep\com\Meca\ua\cn16k.1.0
                  RESULT : ATH NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

                  OPERATION CreateFile
                  PATH :C:\Users\lev\Desktop\winDep\com\Meca\ua.1.0\cn16k
                  RESULT : PATH NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

                  ...

                  K Offline
                  K Offline
                  kenchan
                  wrote on last edited by
                  #9

                  @LeLev I don't understand what all that refers to, but as long it gives you a clue :-)
                  I have found procmon to be useful for things like this.

                  1 Reply Last reply
                  0
                  • J.HilkJ Offline
                    J.HilkJ Offline
                    J.Hilk
                    Moderators
                    wrote on last edited by
                    #10

                    To add my 2 cent,

                    Recently I had some issues with windeployqt turned out, that all needed files were copied, but from the wrong directory.

                    I ended up replacing all files and folders manualy, than the application worked.


                    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                    Q: What's that?
                    A: It's blue light.
                    Q: What does it do?
                    A: It turns blue.

                    1 Reply Last reply
                    1
                    • mrdebugM Offline
                      mrdebugM Offline
                      mrdebug
                      wrote on last edited by
                      #11

                      windeployqt helps but it isn't a solution.
                      You should use qt.conf to setup where the qt app should search the plugins.
                      If you need a plugin that requires a specia qt dll, windeployqt can't help you. If you are using qml, the qml subfolder has to be added manually.
                      Please have a look at my qt apps, just to have an idea on how I share it.
                      http://www.denisgottardello.it/QtComPort/index.php
                      I normally add all the dlls and the plugins to prevent problems.

                      Need programmers to hire?
                      www.labcsp.com
                      www.denisgottardello.it
                      GMT+1
                      Skype: mrdebug

                      ODБOïO 1 Reply Last reply
                      3
                      • mrdebugM mrdebug

                        windeployqt helps but it isn't a solution.
                        You should use qt.conf to setup where the qt app should search the plugins.
                        If you need a plugin that requires a specia qt dll, windeployqt can't help you. If you are using qml, the qml subfolder has to be added manually.
                        Please have a look at my qt apps, just to have an idea on how I share it.
                        http://www.denisgottardello.it/QtComPort/index.php
                        I normally add all the dlls and the plugins to prevent problems.

                        ODБOïO Offline
                        ODБOïO Offline
                        ODБOï
                        wrote on last edited by
                        #12

                        @mrdebug said in Still trying to Deploy... using windeployqt.exe:

                        If you are using qml, the qml subfolder has to be added manually.

                        Thx @mrdebug ! i just addes qml subfolder + qt.conf file
                        http://www.tripleboot.org/?p=536 //nice article Here
                        //qt.conf
                        [Paths]
                        Plugins=plugins

                        Now its workink perfectly!

                        Thank you very much everybody !

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

                          Hi,

                          Out of curiosity, which version of Qt and windeployqt are you using ?

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

                          ODБOïO 1 Reply Last reply
                          1
                          • SGaistS SGaist

                            Hi,

                            Out of curiosity, which version of Qt and windeployqt are you using ?

                            ODБOïO Offline
                            ODБOïO Offline
                            ODБOï
                            wrote on last edited by
                            #14

                            @SGaist hello,
                            Im using Qt 5.10.0 MinGW32bit2
                            windeployqt 5.10.0.0

                            Can someone tell me how to add 'Line number information' to get it in procmon please ?

                            Thanks

                            DiracsbracketD 1 Reply Last reply
                            1
                            • ODБOïO ODБOï

                              @SGaist hello,
                              Im using Qt 5.10.0 MinGW32bit2
                              windeployqt 5.10.0.0

                              Can someone tell me how to add 'Line number information' to get it in procmon please ?

                              Thanks

                              DiracsbracketD Offline
                              DiracsbracketD Offline
                              Diracsbracket
                              wrote on last edited by Diracsbracket
                              #15

                              @LeLev
                              FYI, I found this tool quite useful when I first tried windeployqt:
                              https://github.com/lucasg/Dependencies
                              This is a modern, open source version of the now obsolete Dependency Walker.

                              Just open your .exe file (the one in your deployment folder) in it.

                              0_1518668671818_ebafae5e-b458-4226-a888-4c59da9ae13b-image.png

                              It showed that I forgot to copy my fftw dlls to my deployment folder... and shows the other system dll's it requires.

                              ODБOïO 1 Reply Last reply
                              6
                              • DiracsbracketD Diracsbracket

                                @LeLev
                                FYI, I found this tool quite useful when I first tried windeployqt:
                                https://github.com/lucasg/Dependencies
                                This is a modern, open source version of the now obsolete Dependency Walker.

                                Just open your .exe file (the one in your deployment folder) in it.

                                0_1518668671818_ebafae5e-b458-4226-a888-4c59da9ae13b-image.png

                                It showed that I forgot to copy my fftw dlls to my deployment folder... and shows the other system dll's it requires.

                                ODБOïO Offline
                                ODБOïO Offline
                                ODБOï
                                wrote on last edited by
                                #16

                                @Diracsbracket Thx. I will check that tool.

                                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