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
18 Posts 10 Posters 7.2k Views 4 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.
  • 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
                    • M Offline
                      M Offline
                      montanaviking
                      wrote on last edited by
                      #17

                      It's 2025 and I have the same problem with Windows 10 and Qt6.10. I really do wish this were automated in Qtcreator. I can't understand why that would be hard because, after all, Qtcreator must know where all the required dll files are or it couldn't run the user-developed app either. Why can't qtcreator perform the copying of the required dependencies automatically?
                      I gave up on windeployqt and now I just set the Windows path to enable the apps to find the dependencies.

                      Pl45m4P 1 Reply Last reply
                      0
                      • M montanaviking

                        It's 2025 and I have the same problem with Windows 10 and Qt6.10. I really do wish this were automated in Qtcreator. I can't understand why that would be hard because, after all, Qtcreator must know where all the required dll files are or it couldn't run the user-developed app either. Why can't qtcreator perform the copying of the required dependencies automatically?
                        I gave up on windeployqt and now I just set the Windows path to enable the apps to find the dependencies.

                        Pl45m4P Offline
                        Pl45m4P Offline
                        Pl45m4
                        wrote on last edited by
                        #18

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

                        It's 2025 and I have the same problem with Windows 10 and Qt6.10
                        I really do wish this were automated in Qtcreator

                        Can Visual Studio or VSCode or any other IDE do this?!

                        Qtcreator must know where all the required dll files are or it couldn't run the user-developed app either.

                        QtC only knows if the paths were set beforehand... This is what your "kit" does.
                        If you mis-configure your kit... QtC knows nothing... how should it know?!


                        If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                        ~E. W. Dijkstra

                        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