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. qt examples doesnt start after deployment with windeployqt.exe

qt examples doesnt start after deployment with windeployqt.exe

Scheduled Pinned Locked Moved Solved Installation and Deployment
9 Posts 3 Posters 1.4k 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.
  • A Offline
    A Offline
    al072
    wrote on last edited by
    #1

    Hi everybody, i am new to Qt development., Just recently installed the latest version of Qt 5.14.2 + VS2019 Pro (Windows 10) . I can run the examples inside the Qt Creator without any problem, but cant deploy the examples using windeployqt.exe... I did everything like in this video instruction: https://www.youtube.com/watch?v=gnpPosTbttM&list=PLQMs5svASiXNx0UX7tVTncos4j0j9rRa4&index=3

    but after deployment procedure .exe just doesnt start (no errors and no GUI is shown up) . I tried diiferent examples (dashboard, quickGamepad, automotive and so on.. behavior is the same cant start exe outside of Qt Creator)

    Help me please to find a solution...

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

      You are using Qt Quick, you need to use the --qmldir and point it to the folder containing your application qml files.

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

      A 1 Reply Last reply
      1
      • A Offline
        A Offline
        al072
        wrote on last edited by
        #2

        Hi, dear QT developers! Is there any way to get answer or directions with my problem? Maybe need some extra details?

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

          Hi and welcome to devnet,

          What exact example are you testing ?
          Qt 32 or 64 bit ?

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

          A 1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #4

            Try to run the .exe from command line (cmd.exe) and see if you get any warnings or errors printed.

            (Z(:^

            A 1 Reply Last reply
            0
            • SGaistS SGaist

              Hi and welcome to devnet,

              What exact example are you testing ?
              Qt 32 or 64 bit ?

              A Offline
              A Offline
              al072
              wrote on last edited by
              #5

              @SGaist said in qt examples doesnt start after deployment with windeployqt.exe:

              Hi and welcome to devnet,

              What exact example are you testing ?
              Qt 32 or 64 bit ?

              Thank you for reply !!!

              1. I am testing this example: C:\Qt\Qt5.14.2\Examples\Qt-5.14.2\quickcontrols2\imagine\automotive
              2. Qt 64 bit
              3. Also tried 32 bit, the same problem just no errors no windows outside the Qt Creator
              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #6

                How did you call windeployqt exactly ?

                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
                • sierdzioS sierdzio

                  Try to run the .exe from command line (cmd.exe) and see if you get any warnings or errors printed.

                  A Offline
                  A Offline
                  al072
                  wrote on last edited by
                  #7

                  @SGaist said in qt examples doesnt start after deployment with windeployqt.exe:

                  How did you call windeployqt exactly ?

                  1. Copied automotive.exe (release) to new folder called "Deploy"
                  2. Run the Qt command prompt "Qt 5.14.2 (MSVC 2017 64-bit)"
                  3. Here is my console output:
                  Setting up environment for Qt usage...
                  Remember to call vcvarsall.bat to complete environment setup!
                  
                  C:\Qt\Qt5.14.2\5.14.2\msvc2017_64>cd C:\Qt\Qt5.14.2\Examples\Qt-5.14.2\quickcontrols2\imagine\Deploy
                  
                  C:\Qt\Qt5.14.2\Examples\Qt-5.14.2\quickcontrols2\imagine\Deploy>windeployqt automotive.exe
                  C:\Qt\Qt5.14.2\Examples\Qt-5.14.2\quickcontrols2\imagine\Deploy\automotive.exe 64 bit, release executable [QML]
                  Adding Qt5Svg Qt5Widgets for qsvgicon.dll
                  Direct dependencies: Qt5Core Qt5Gui Qt5Qml
                  All dependencies   : Qt5Core Qt5Gui Qt5Network Qt5Qml
                  To be deployed     : Qt5Core Qt5Gui Qt5Network Qt5Qml Qt5Svg Qt5Widgets
                  Warning: Cannot find Visual Studio installation directory, VCINSTALLDIR is not set.
                  Updating Qt5Core.dll.
                  Updating Qt5Gui.dll.
                  Updating Qt5Network.dll.
                  Updating Qt5Qml.dll.
                  Updating Qt5Svg.dll.
                  Updating Qt5Widgets.dll.
                  Updating libGLESv2.dll.
                  Updating libEGL.dll.
                  Updating D3Dcompiler_47.dll.
                  Updating opengl32sw.dll.
                  Creating directory C:/Qt/Qt5.14.2/Examples/Qt-5.14.2/quickcontrols2/imagine/Deploy/bearer.
                  Updating qgenericbearer.dll.
                  Creating directory C:/Qt/Qt5.14.2/Examples/Qt-5.14.2/quickcontrols2/imagine/Deploy/iconengines.
                  Updating qsvgicon.dll.
                  Creating directory C:/Qt/Qt5.14.2/Examples/Qt-5.14.2/quickcontrols2/imagine/Deploy/imageformats.
                  Updating qgif.dll.
                  Updating qicns.dll.
                  Updating qico.dll.
                  Updating qjpeg.dll.
                  Updating qsvg.dll.
                  Updating qtga.dll.
                  Updating qtiff.dll.
                  Updating qwbmp.dll.
                  Updating qwebp.dll.
                  Creating directory C:/Qt/Qt5.14.2/Examples/Qt-5.14.2/quickcontrols2/imagine/Deploy/platforms.
                  Updating qwindows.dll.
                  Creating directory C:/Qt/Qt5.14.2/Examples/Qt-5.14.2/quickcontrols2/imagine/Deploy/styles.
                  Updating qwindowsvistastyle.dll.
                  Creating C:\Qt\Qt5.14.2\Examples\Qt-5.14.2\quickcontrols2\imagine\Deploy\translations...
                  Creating qt_ar.qm...
                  Creating qt_bg.qm...
                  Creating qt_ca.qm...
                  Creating qt_cs.qm...
                  Creating qt_da.qm...
                  Creating qt_de.qm...
                  Creating qt_en.qm...
                  Creating qt_es.qm...
                  Creating qt_fi.qm...
                  Creating qt_fr.qm...
                  Creating qt_gd.qm...
                  Creating qt_he.qm...
                  Creating qt_hu.qm...
                  Creating qt_it.qm...
                  Creating qt_ja.qm...
                  Creating qt_ko.qm...
                  Creating qt_lv.qm...
                  Creating qt_pl.qm...
                  Creating qt_ru.qm...
                  Creating qt_sk.qm...
                  Creating qt_uk.qm...
                  Creating qt_zh_TW.qm...
                  
                  C:\Qt\Qt5.14.2\Examples\Qt-5.14.2\quickcontrols2\imagine\Deploy>
                  
                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #8

                    You are using Qt Quick, you need to use the --qmldir and point it to the folder containing your application qml files.

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

                    A 1 Reply Last reply
                    1
                    • SGaistS SGaist

                      You are using Qt Quick, you need to use the --qmldir and point it to the folder containing your application qml files.

                      A Offline
                      A Offline
                      al072
                      wrote on last edited by
                      #9

                      @SGaist

                      I dont even know how to thank you!!! You helped me a lot!!! Finally i have got my first project in Qt

                      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