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. Problem deploying a simple qt windows App
Forum Updated to NodeBB v4.3 + New Features

Problem deploying a simple qt windows App

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 2 Posters 446 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.
  • A Offline
    A Offline
    abhib
    wrote on 7 Dec 2022, 21:55 last edited by abhib 12 Aug 2022, 17:37
    #1

    Hi,

    I have a simple windows app compiled using the mingw730_64 provided with the Qt 5.14.1.

    I can run the application from the creator but when trying to launch the application from the command line or double clicking does noting. I initially had errors that I fixed running windeployqt.exe. The target is to share the folder with executable to friends to run the application on their computer without Qt on them.

    Any idea how I can address the issue?

    Thanks

    J 1 Reply Last reply 8 Dec 2022, 06:33
    0
    • A abhib
      7 Dec 2022, 21:55

      Hi,

      I have a simple windows app compiled using the mingw730_64 provided with the Qt 5.14.1.

      I can run the application from the creator but when trying to launch the application from the command line or double clicking does noting. I initially had errors that I fixed running windeployqt.exe. The target is to share the folder with executable to friends to run the application on their computer without Qt on them.

      Any idea how I can address the issue?

      Thanks

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 8 Dec 2022, 06:33 last edited by
      #2

      @abhib said in Problem deploying a simple qt windows App:

      Qt Creator 5.14.1

      This is Qt version, not QtCreator.

      How exactly did you call windeployqt.exe?
      You can use https://www.dependencywalker.com to check whether some libraries are missing.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        abhib
        wrote on 8 Dec 2022, 17:42 last edited by
        #3

        @jsulm Thanks for pointing to the application version error. I corrected it to reflect it correctly.

        I called windeployqt.exe in two ways.

        1. Launch command prompt as admin and changed directory to the folder containing windeployqt and ran windeployqt with the location of my qt apps exe.

        2. Launch the qt's command prompt in the folder of the qt apps exe and ran windeployqt with the app exe as input.

        I will try the dependencywalker.com. Thanks!

        J 1 Reply Last reply 9 Dec 2022, 07:20
        0
        • A abhib
          8 Dec 2022, 17:42

          @jsulm Thanks for pointing to the application version error. I corrected it to reflect it correctly.

          I called windeployqt.exe in two ways.

          1. Launch command prompt as admin and changed directory to the folder containing windeployqt and ran windeployqt with the location of my qt apps exe.

          2. Launch the qt's command prompt in the folder of the qt apps exe and ran windeployqt with the app exe as input.

          I will try the dependencywalker.com. Thanks!

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 9 Dec 2022, 07:20 last edited by
          #4

          @abhib said in Problem deploying a simple qt windows App:

          Launch command prompt as admin

          There is no need to run it as admin.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          A 1 Reply Last reply 13 Dec 2022, 23:30
          0
          • J jsulm
            9 Dec 2022, 07:20

            @abhib said in Problem deploying a simple qt windows App:

            Launch command prompt as admin

            There is no need to run it as admin.

            A Offline
            A Offline
            abhib
            wrote on 13 Dec 2022, 23:30 last edited by
            #5

            There is no need to run it as admin.

            Thanks for the help. You were right, no need to run as admin. And your suggestion to use the dependdencywalker helped too.

            1 Reply Last reply
            0

            1/5

            7 Dec 2022, 21:55

            • Login

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