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. Attempting Windows deployment - .exe file not opening with no error messages

Attempting Windows deployment - .exe file not opening with no error messages

Scheduled Pinned Locked Moved Solved Installation and Deployment
windowsdeploymentqml
4 Posts 2 Posters 1.4k Views
  • 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
    adamlaird
    wrote on last edited by
    #1

    Hi All,

    I have been attempting to deploy my app to windows (a laptop without QT installed) and I am assuming I have a dependency issue, but I am getting no error messages.

    Currently using: C:\Qt\5.12.6\mingw73_64

    My app runs fine in QtCreator, and I have used windeployqt (with adding the qmldir as well), which works fine initially. However, I change my C:\Qt folder to C:\QtHidden (I read somewhere that this imitates not having QT installed) and my .exe file does not load. I can click on it, but no error message comes up, my mouse cursor changes to a loading cursor for a few moments, and then nothing happens. Does anyone know of a way I can log what is happening so I can try to fix it?

    I also tried following https://wiki.qt.io/Deploy_an_Application_on_Windows 'initial deployment' instructions where I put every .dll file from /bin, and every folder from plugins and qml. The same no error and no opening problem occurs and I'm not sure what else I can do.

    Any ideas?

    Thanks

    Pablo J. RoginaP 1 Reply Last reply
    0
    • A adamlaird

      Hi All,

      I have been attempting to deploy my app to windows (a laptop without QT installed) and I am assuming I have a dependency issue, but I am getting no error messages.

      Currently using: C:\Qt\5.12.6\mingw73_64

      My app runs fine in QtCreator, and I have used windeployqt (with adding the qmldir as well), which works fine initially. However, I change my C:\Qt folder to C:\QtHidden (I read somewhere that this imitates not having QT installed) and my .exe file does not load. I can click on it, but no error message comes up, my mouse cursor changes to a loading cursor for a few moments, and then nothing happens. Does anyone know of a way I can log what is happening so I can try to fix it?

      I also tried following https://wiki.qt.io/Deploy_an_Application_on_Windows 'initial deployment' instructions where I put every .dll file from /bin, and every folder from plugins and qml. The same no error and no opening problem occurs and I'm not sure what else I can do.

      Any ideas?

      Thanks

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @adamlaird could you please try running your Qt app from command line (i.e. DOS window)

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      A 1 Reply Last reply
      0
      • Pablo J. RoginaP Pablo J. Rogina

        @adamlaird could you please try running your Qt app from command line (i.e. DOS window)

        A Offline
        A Offline
        adamlaird
        wrote on last edited by
        #3

        @Pablo-J-Rogina Hi, thanks for your quick reply. It does nothing at all unfortunately

        1 Reply Last reply
        0
        • A Offline
          A Offline
          adamlaird
          wrote on last edited by
          #4

          I posted this Question on SO as well, who directed me towards a logger which made it really easy to see what was up and lead to an easy fix.

          Heres a link to the question if anyone would find it helpful: https://stackoverflow.com/questions/61035096/attempting-windows-deployment-exe-file-not-opening-with-no-error-messages/61036646#61036646

          1 Reply Last reply
          2

          • Login

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