Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved windeployqt does not collect the dll

    General and Desktop
    4
    14
    357
    Loading More Posts
    • 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
      Mikeeeeee last edited by

      Hi!
      Windeployqt does not collect the dll.
      If you build in a 64-bit compiler, then nothing happens at all, and if in 32, I get this error when starting the program
      1.png

      1 Reply Last reply Reply Quote 0
      • M
        MajidKamali last edited by

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

        1 Reply Last reply Reply Quote 4
        • M
          Mikeeeeee last edited by

          @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 Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 1
            • M
              Mikeeeeee last edited by

              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?

              mrjj 1 Reply Last reply Reply Quote 0
              • M
                Mikeeeeee last edited by

                Is there an example and explanation for this command?

                windeployqt --qmldir <path-to-app-qml-files> <path-to-app-binary>
                
                mrjj 1 Reply Last reply Reply Quote 0
                • mrjj
                  mrjj Lifetime Qt Champion @Mikeeeeee last edited by

                  @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 Reply Quote 1
                  • mrjj
                    mrjj Lifetime Qt Champion @Mikeeeeee last edited by

                    @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 Reply Quote 1
                    • M
                      Mikeeeeee last edited by

                      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?

                      mrjj 1 Reply Last reply Reply Quote 0
                      • mrjj
                        mrjj Lifetime Qt Champion @Mikeeeeee last edited by

                        @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 Reply Quote 1
                        • M
                          Mikeeeeee last edited by

                          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 Reply Quote 0
                          • M
                            Mikeeeeee last edited by

                            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 Reply Quote 0
                            • M
                              Mikeeeeee last edited by

                              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 Reply Quote 1
                              • mrjj
                                mrjj Lifetime Qt Champion last edited by

                                @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 Reply Quote 0
                                • First post
                                  Last post