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. Deployed Qt application finishes immediatly after start
Forum Updated to NodeBB v4.3 + New Features

Deployed Qt application finishes immediatly after start

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 4 Posters 777 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.
  • F Offline
    F Offline
    FedorKozlov
    wrote on last edited by FedorKozlov
    #1

    I'm developing app in Windows, Desktop Qt 5.11.2 MinGW 5.3.0 32bit
    In order to share my application i did following:

    • Made release build
    • Copied .exe file to new directory of my package
    • run windeployqt.exe with --release option

    After that, when I'm trying to run my app nothing happend. I assume the app finishes right after start.
    It works fine, when I start it from QtCreator, but when I run app manually it seems just stops without any error.

    J.HilkJ 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Use Dependency Walker or similar to check whether a .dll has been missed (for example the MinGW runtime).

      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
      • F FedorKozlov

        I'm developing app in Windows, Desktop Qt 5.11.2 MinGW 5.3.0 32bit
        In order to share my application i did following:

        • Made release build
        • Copied .exe file to new directory of my package
        • run windeployqt.exe with --release option

        After that, when I'm trying to run my app nothing happend. I assume the app finishes right after start.
        It works fine, when I start it from QtCreator, but when I run app manually it seems just stops without any error.

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by mrjj
        #3

        @FedorKozlov
        do you use QML in your app ? If yes you'll have to tell the deployment tool where to find the files, to search for and copy the qml dependencies


        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.

        F 1 Reply Last reply
        3
        • E Offline
          E Offline
          eliseev
          wrote on last edited by
          #4

          Make sure your platform plugin is at the expected path plugins/platform/, it's the most likely cause for a Qt app to fail to launch silently.

          1 Reply Last reply
          2
          • J.HilkJ J.Hilk

            @FedorKozlov
            do you use QML in your app ? If yes you'll have to tell the deployment tool where to find the files, to search for and copy the qml dependencies

            F Offline
            F Offline
            FedorKozlov
            wrote on last edited by
            #5

            @J.Hilk
            Thank you! That's the reason

            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