Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. After running windeployqt the application does not start
Forum Updated to NodeBB v4.3 + New Features

After running windeployqt the application does not start

Scheduled Pinned Locked Moved Solved Installation and Deployment
20 Posts 6 Posters 4.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.
  • C Offline
    C Offline
    cupressus
    wrote on last edited by
    #9

    C:\Users\alois\Documents\build-untitled1-Desktop_Qt_5_14_2_MinGW_32_bit-Release\release

    within release directory stays my executabe named untiteld1.exe

    JonBJ 1 Reply Last reply
    1
    • C Offline
      C Offline
      cupressus
      wrote on last edited by
      #10

      @cupressus said in After running windeployqt the application does not start:

      C:\Users\alois\Documents\build-untitled1-Desktop_Qt_5_14_2_MinGW_32_bit-Release\release\untitled1.exe

      1 Reply Last reply
      0
      • C cupressus

        C:\Users\alois\Documents\build-untitled1-Desktop_Qt_5_14_2_MinGW_32_bit-Release\release

        within release directory stays my executabe named untiteld1.exe

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by JonB
        #11

        @cupressus
        Try running a dependency walker (https://www.dependencywalker.com/) on your .exe to see if you can spot any potentially missing/not found/wrong bit-ness DLLs on the target system. Also if you are not already doing so try running your executable from a Command Prompt rather then double-clicking it, Windows might be outputting some kind of message which you could see there.

        1 Reply Last reply
        2
        • C Offline
          C Offline
          cupressus
          wrote on last edited by
          #12

          Hello, have a look at the attached picture. This is what dependency walker shows.Unbenannt.jpg

          1 Reply Last reply
          0
          • C Offline
            C Offline
            cupressus
            wrote on last edited by
            #13

            I have found the error. I did a mistake specifying the path to qml files. Now it works.
            Nevertheless i am wondering that there ar so much files needed for this simple app.
            125mb?

            J.HilkJ 1 Reply Last reply
            0
            • C cupressus

              I have found the error. I did a mistake specifying the path to qml files. Now it works.
              Nevertheless i am wondering that there ar so much files needed for this simple app.
              125mb?

              J.HilkJ Online
              J.HilkJ Online
              J.Hilk
              Moderators
              wrote on last edited by
              #14

              @cupressus look at that, had you done as I asked

              please post the argument you used for the tool,

              we might have been here earlier.

              The files will be big, OpenGL.dll will be 20 mb is alone.
              That said 128mb is a lot and more than I would expect, but without more information hard to tell/advice


              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
              • C Offline
                C Offline
                cupressus
                wrote on last edited by
                #15

                @J-Hilk

                here the command line i used for deployment:

                windeployqt --qmldir c:\qt\5.14.2\mingw73_32\qml c:\myApp\myApp.exe

                Yes i can delete some files step by step and look what happens but i cannot imagin
                if there is not another way.

                J.HilkJ S 2 Replies Last reply
                0
                • C cupressus

                  @J-Hilk

                  here the command line i used for deployment:

                  windeployqt --qmldir c:\qt\5.14.2\mingw73_32\qml c:\myApp\myApp.exe

                  Yes i can delete some files step by step and look what happens but i cannot imagin
                  if there is not another way.

                  J.HilkJ Online
                  J.HilkJ Online
                  J.Hilk
                  Moderators
                  wrote on last edited by
                  #16

                  @cupressus said in After running windeployqt the application does not start:

                  windeployqt --qmldir c:\qt\5.14.2\mingw73_32\qml c:\myApp\myApp.exe

                  ah, an error that I expected, you gave the tool the path to the whole QML folder of your Qt installation therefore it got everything qml related -> your folder is so big now.

                  That path should be to the top most folder of your created QML files.

                  Lets assume, your top most QML File is named MySuperAppMain.qml and it has the following path c:\MyQtProjects\MySuperApp\MySuperAppMain.qml

                  than your argument should be:

                  --qmldir c:\MyQtProjects\MySuperApp


                  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
                  3
                  • C Offline
                    C Offline
                    cupressus
                    wrote on last edited by
                    #17

                    @J-Hilk , thanks that helped. The installation folder is now a bit smaller but still
                    97mb.

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      cupressus
                      wrote on last edited by
                      #18

                      I was now able to reduce the amount to 50 mb thats ok. for me.

                      Thanks for help.

                      1 Reply Last reply
                      0
                      • C cupressus

                        @J-Hilk

                        here the command line i used for deployment:

                        windeployqt --qmldir c:\qt\5.14.2\mingw73_32\qml c:\myApp\myApp.exe

                        Yes i can delete some files step by step and look what happens but i cannot imagin
                        if there is not another way.

                        S Offline
                        S Offline
                        Samuel Alves
                        wrote on last edited by
                        #19

                        @cupressus I used the same commando to deploy my application but when i try to run nothing happens.

                        The command: C:\Qt\5.15.2\msvc2019\bin\windeployqt.exe --qmldir C:\Qt\5.15.2\msvc2019\qml C:\Users\Samuel\Desktop\deploy\main.exe

                        SGaistS 1 Reply Last reply
                        0
                        • S Samuel Alves

                          @cupressus I used the same commando to deploy my application but when i try to run nothing happens.

                          The command: C:\Qt\5.15.2\msvc2019\bin\windeployqt.exe --qmldir C:\Qt\5.15.2\msvc2019\qml C:\Users\Samuel\Desktop\deploy\main.exe

                          SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #20

                          @Samuel-Alves Hi and welcome to devnet,

                          You have to give the path to your qml sources. The ones that you have in your sources not the one from Qt.

                          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
                          0

                          • Login

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