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. windeployqt does not collect the dll
Forum Updated to NodeBB v4.3 + New Features

windeployqt does not collect the dll

Scheduled Pinned Locked Moved Solved General and Desktop
14 Posts 4 Posters 1.9k Views 2 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.
  • M Offline
    M Offline
    MajidKamali
    wrote on last edited by
    #2

    use windeployqt with --compiler-runtime switch
    https://doc.qt.io/qt-5/windows-deployment.html

    1 Reply Last reply
    4
    • M Offline
      M Offline
      Mikeeeeee
      wrote on last edited by
      #3

      @MajidKamali said in windeployqt does not collect the dll:

      --compiler-runtime

      --compiler-runtime do I need to write it in the command line or in qt when building the program?

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

        Hi,

        You need to read the documentation of windeployqt that @MajidKamali pointed you to. It's all there.

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

        1 Reply Last reply
        1
        • M Offline
          M Offline
          Mikeeeeee
          wrote on last edited by
          #5

          There are no clear examples in the documentation, it is not understood. Apparently you have worked with this a lot and it is clear to you without documentation. How do I build the necessary dll files in a program with qml?

          mrjjM 1 Reply Last reply
          0
          • M Offline
            M Offline
            Mikeeeeee
            wrote on last edited by
            #6

            Is there an example and explanation for this command?

            windeployqt --qmldir <path-to-app-qml-files> <path-to-app-binary>
            
            mrjjM 1 Reply Last reply
            0
            • M Mikeeeeee

              There are no clear examples in the documentation, it is not understood. Apparently you have worked with this a lot and it is clear to you without documentation. How do I build the necessary dll files in a program with qml?

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #7

              @Mikeeeeee
              hi
              its a command line so you use it WITH windeployqt to say it must also copy compiler runtime
              The error you showed looks like missing runtime for mingw compiler.

              If you used QML also you will need to add --qmldir
              where you point to the qml files you have.

              so goto folder where your exe is and something like

              windeployqt --compiler-runtime --release --qmldir C:\YOURPATH\qmlfolder MyApp.exe

              or use full path to .exe also.

              1 Reply Last reply
              1
              • M Mikeeeeee

                Is there an example and explanation for this command?

                windeployqt --qmldir <path-to-app-qml-files> <path-to-app-binary>
                
                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #8

                @Mikeeeeee said in windeployqt does not collect the dll:

                Is there an example and explanation for this command?

                windeployqt --qmldir <path-to-app-qml-files> <path-to-app-binary>
                

                Yes its ALL listed in the link
                https://doc.qt.io/qt-5/windows-deployment.html

                1 Reply Last reply
                1
                • M Offline
                  M Offline
                  Mikeeeeee
                  wrote on last edited by
                  #9

                  There is no example for the link. There is only a scant description.
                  It's not work:

                  windeployqt.exe --qmldir E:\test\build-testQmlAndCpp-Desktop_Qt_5_14_1_MinGW_32_bit-Release2\testQmlAndCpp.exe  E:\QTProject\testQmlAndCpp\testQmlAndCpp.pro
                  

                  It's too not work:

                  windeployqt --compiler-runtime --release --qmldir  E:\test\build-testQmlAndCpp-Desktop_Qt_5_14_1_MinGW_32_bit-Release2\testQmlAndCpp.exe 
                  

                  Is there a working example?

                  mrjjM 1 Reply Last reply
                  0
                  • M Mikeeeeee

                    There is no example for the link. There is only a scant description.
                    It's not work:

                    windeployqt.exe --qmldir E:\test\build-testQmlAndCpp-Desktop_Qt_5_14_1_MinGW_32_bit-Release2\testQmlAndCpp.exe  E:\QTProject\testQmlAndCpp\testQmlAndCpp.pro
                    

                    It's too not work:

                    windeployqt --compiler-runtime --release --qmldir  E:\test\build-testQmlAndCpp-Desktop_Qt_5_14_1_MinGW_32_bit-Release2\testQmlAndCpp.exe 
                    

                    Is there a working example?

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    @Mikeeeeee
                    There cannot be a working example as you must fill in the paths to fit your project.
                    also, you point to \testQmlAndCpp.exe for --qmldir but it must point to the folder where your actual QML files is.
                    Often the porject foler of the app, unless you put the files in a sub folder.

                    The link list the parameters and explain what each does. please read it.

                    1 Reply Last reply
                    1
                    • M Offline
                      M Offline
                      Mikeeeeee
                      wrote on last edited by
                      #11

                      its too not work

                      windeployqt --compiler-runtime --release --qmldir   E:\QTProject\testQmlAndCpp E:\QTProject\testQmlAndCpp\testQmlAndCpp.pro
                      

                      The documentation does not say what path-to-app-qmlfiles is.
                      Please explain in more detail how to use this command.

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        Mikeeeeee
                        wrote on last edited by
                        #12

                        and if I do this, then some libraries are written in the console, but they are not added to the folder with the. exe file

                        windeployqt --compiler-runtime --release --qmldir   E:\QTProject\testQmlAndCpp  E:\test\build-testQmlAndCpp-Desktop_Qt_5_14_1_MinGW_32_bit-Release
                        
                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          Mikeeeeee
                          wrote on last edited by
                          #13

                          it is work

                          windeployqt --qmldir   E:\QTProject\testQmlAndCpp  E:\test\build-testQmlAndCpp-Desktop_Qt_5_14_1_MinGW_32_bit-Release
                          
                          1 Reply Last reply
                          1
                          • mrjjM Offline
                            mrjjM Offline
                            mrjj
                            Lifetime Qt Champion
                            wrote on last edited by
                            #14

                            @Mikeeeeee said in windeployqt does not collect the dll:

                            The documentation does not say what path-to-app-qmlfiles is.

                            Well it could not as its where you place them.
                            Often in the project folder with the other files of the project.

                            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