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. Can't launch Windows desktop/console programs built with QT Creator
Forum Updated to NodeBB v4.3 + New Features

Can't launch Windows desktop/console programs built with QT Creator

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
6 Posts 5 Posters 2.1k Views 1 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
    candrs_rf
    wrote on last edited by
    #1

    I cannot run Windows desktop programs built with QT Creator. When I attempt to run the program outside of QT Creator I get "VCRUNTIME140_APP.dll was not found" messages. However, when I launch the program from QT Creator it runs fine. This happens for any of the example programs that come with QT Creator. It seems strange that a desktop application would have a dependency on DLLs such as vcruntime14_app.dll since (I think) those DLLs are used for UWP applications. Also, strange that the apps launch fine when running within QT Creator. Has anyone else seen this problem?

    Gojir4G 1 Reply Last reply
    0
    • C candrs_rf

      I cannot run Windows desktop programs built with QT Creator. When I attempt to run the program outside of QT Creator I get "VCRUNTIME140_APP.dll was not found" messages. However, when I launch the program from QT Creator it runs fine. This happens for any of the example programs that come with QT Creator. It seems strange that a desktop application would have a dependency on DLLs such as vcruntime14_app.dll since (I think) those DLLs are used for UWP applications. Also, strange that the apps launch fine when running within QT Creator. Has anyone else seen this problem?

      Gojir4G Offline
      Gojir4G Offline
      Gojir4
      wrote on last edited by Gojir4
      #2

      @candrs_rf That's normal behavior because Qt Creator loads all the dependency when you are running from it. You can use windeployqt to automatically add the dependecies into your executable's folder.

      Juan DevJ 1 Reply Last reply
      2
      • Gojir4G Gojir4

        @candrs_rf That's normal behavior because Qt Creator loads all the dependency when you are running from it. You can use windeployqt to automatically add the dependecies into your executable's folder.

        Juan DevJ Offline
        Juan DevJ Offline
        Juan Dev
        wrote on last edited by
        #3

        @Gojir4
        I used windeployqt.
        It's works fine.
        DLL's like "Qt5Core.dll" or "Qt5Widgets.dll" are in my executable folder but I still get the same message about "VCRUNTIME140_APP.dll"

        SGaistS 1 Reply Last reply
        0
        • Juan DevJ Juan Dev

          @Gojir4
          I used windeployqt.
          It's works fine.
          DLL's like "Qt5Core.dll" or "Qt5Widgets.dll" are in my executable folder but I still get the same message about "VCRUNTIME140_APP.dll"

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

          @Juan-Dev hi and welcome to devnet,

          You need to deploy the corresponding Windows runtime as well.

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

          Juan DevJ 1 Reply Last reply
          0
          • SGaistS SGaist

            @Juan-Dev hi and welcome to devnet,

            You need to deploy the corresponding Windows runtime as well.

            Juan DevJ Offline
            Juan DevJ Offline
            Juan Dev
            wrote on last edited by
            #5

            @SGaist Thanks for your answer.
            I had used "windeploy" but had not used the correct environment.

            I am using the "Desktop Qt 5.15.1 MSVC2015 64bit" kit. But I was using the "qtenv2.bat" file from the "winrt_x64_msvc2015" folder instead of "msvc2015_64".
            Bad folder and therefore bad environment.

            Using the right environment, it works :)

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

              Great !

              Since you have it working now, please make the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :-)

              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