Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    Installation and Deployment
    windows deployment qml
    2
    4
    653
    Loading More Posts
    • 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
      adamlaird last edited by

      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. Rogina 1 Reply Last reply Reply Quote 0
      • Pablo J. Rogina
        Pablo J. Rogina @adamlaird last edited by

        @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 Reply Quote 0
        • A
          adamlaird @Pablo J. Rogina last edited by

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

          1 Reply Last reply Reply Quote 0
          • A
            adamlaird last edited by

            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 Reply Quote 2
            • First post
              Last post