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. MSVC 2017 after running windeployqt.exe application fails to launch without stating any errors
Forum Updated to NodeBB v4.3 + New Features

MSVC 2017 after running windeployqt.exe application fails to launch without stating any errors

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 4 Posters 709 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.
  • G Offline
    G Offline
    Gurminder
    wrote on last edited by
    #1

    Hello all,

    I am new to QT framework.

    I have installed Qt framework with version 5.11.2 with MSVC 2017 64 bit

    I have created a simple Qt Quick Application with Text displaying Hello World.

    I run the app within the qt creator everything works fine.

    I went to the project files and found the release and the debug folder. I have used the following command.

    windeployqt.exe demo.exe

    Where demo is the executable file for the project.

    For both release and the debug versions. The dependencies are copied to the project folder. However, the application fails to launch with no errors.

    Any suggestions would be really appreciated.

    aha_1980A raven-worxR 2 Replies Last reply
    0
    • G Gurminder

      Hello all,

      I am new to QT framework.

      I have installed Qt framework with version 5.11.2 with MSVC 2017 64 bit

      I have created a simple Qt Quick Application with Text displaying Hello World.

      I run the app within the qt creator everything works fine.

      I went to the project files and found the release and the debug folder. I have used the following command.

      windeployqt.exe demo.exe

      Where demo is the executable file for the project.

      For both release and the debug versions. The dependencies are copied to the project folder. However, the application fails to launch with no errors.

      Any suggestions would be really appreciated.

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @Gurminder,

      You need to pass --qmldir <path> for QtQuick applications. Please see: http://doc.qt.io/qt-5/windows-deployment.html

      That page also gives some hints for debugging the deployed app in case it does not work.

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      1
      • G Offline
        G Offline
        Gurminder
        wrote on last edited by
        #3

        Thank you for the response!

        I have used the following command as you have suggested:

        windeployqt --qmldir C:\Qt\5.11.2\msvc2017_64\qml C:\Users\USERNAME\Documents\build-Madara-Desktop_Qt_5_11_2_MSVC2017_64bit-Release\release\Madara.exe

        However there is not change in the behavior, it still does not show any output.

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

          Hi,

          The --qmldir path should be the one from your project, so everything that it currently needs can be deployed.

          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
          • G Gurminder

            Hello all,

            I am new to QT framework.

            I have installed Qt framework with version 5.11.2 with MSVC 2017 64 bit

            I have created a simple Qt Quick Application with Text displaying Hello World.

            I run the app within the qt creator everything works fine.

            I went to the project files and found the release and the debug folder. I have used the following command.

            windeployqt.exe demo.exe

            Where demo is the executable file for the project.

            For both release and the debug versions. The dependencies are copied to the project folder. However, the application fails to launch with no errors.

            Any suggestions would be really appreciated.

            raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on last edited by raven-worx
            #5

            @Gurminder
            in case you are testing the deployment on another machine you need to make sure to also deploy/install the corresponding msvc2017 runtime components.
            But i would expect an error dialog in this case.

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            1 Reply Last reply
            1

            • Login

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