Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT program on windows will not run outside of the editor

QT program on windows will not run outside of the editor

Scheduled Pinned Locked Moved General and Desktop
10 Posts 4 Posters 4.0k 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.
  • J Offline
    J Offline
    joshua-anderson
    wrote on last edited by
    #1

    I would like to deploy my Qt application on windows with visual studio 2012 x64. However, outside of Qt Creator, it will not run.

    My process is:

    Set QT Creator to release

    Copy Over the Necessary Dll's

    Add CONFIG += embed_manifest_exe ro my .pro file

    However, Nothing happens when I launch the executable. Is their anything I am missing?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dbzhang800
      wrote on last edited by
      #2

      Have you deploy the plugins which is needed by your application?

      1 Reply Last reply
      0
      • V Offline
        V Offline
        Violet Giraffe
        wrote on last edited by
        #3

        Offtopic: what does CONFIG += embed_manifest_exe do?

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

          Hi,

          Please read the "deployment documentation":http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html

          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
          • J Offline
            J Offline
            joshua-anderson
            wrote on last edited by
            #5

            Hello!

            SGaist:
            I read the documentation when I tried to get my application to run
            outside of the ide. I need help because I try to run my program outside of the ide and nothing happens, no error, nothing in task manager.

            Violet Giraffe:
            The link to where I learned about CONFIG += embed_manifest_exe is here:

            I'm not convinced it is necessary, but I figured it doesn't hurt.

            http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html#manifest-files

            1+1=2:

            I'm not sure what you mean by adding the plugins folder. I haven't seen a single qt windows program with a plugins folder by the exe (Is the plugins folder for qml, which I'm not using?).

            Everyone:

            Is there anything I could do to cause my working executable not to do anything I when I try to launch it outside of the ide.

            Thanks!

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

              The plugin folder contains i.e. the plugins to handle various image types, database drivers etc...
              And there's the platform plugins that you have to put in a platform folder beside you exec.

              You can also create a dummy application showing a QLabel and try to start it to see if you've got the dlls right

              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
              • J Offline
                J Offline
                joshua-anderson
                wrote on last edited by
                #7

                I tried another application, and copied all the dll It gave me error's for. After I copied all the dll's that it gives me error's for, when I try to start the app, nothing happens. Is the platform folder mandatory?

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

                  It is indeed

                  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
                  • J Offline
                    J Offline
                    joshua-anderson
                    wrote on last edited by
                    #9

                    Is the platform folder something added in QT 5, I haven't seen it in any qt apps on windows before.

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

                      Yes it is, it's explained in the "deployment documentation":http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html

                      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