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. How to make a stand alone exe in qt 3.0.0
Forum Updated to NodeBB v4.3 + New Features

How to make a stand alone exe in qt 3.0.0

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 2.6k 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.
  • M Offline
    M Offline
    Morgan Peters
    wrote on last edited by
    #1

    Hi all. I have worked on a program in qt, I have found the exe file in the debug folder, and i have run the file. At first, it says, "need file _____". When i find the file and put it there, it says i am missing a different file. I keep finding each file and putting it in the folder and it never seemed to run. Does anybody know how to make a stand alone exe in qt 3.0.0?

    I am using the MinGW on Windows 8. I am also new to Qt.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      3.0.0 is not a Qt version. Qt Creator 3.0.0 can create applications that might use any version of Qt (or none at all). I am assuming Qt 5.x

      http://qt-project.org/doc/qt-5/windows-deployment.html

      A "standalone exe" is a static executable. It involves building a version Qt 5.x for static linking, a static version of any other libraries you are using, and building/linking your application with those. The resulting executable will be mostly self-contained and has other limitations surrounding Qt plugins.

      I find it generally easier to use dynamic linking (shared library) and build an installer script (NSIS, WiX, Innosetup etc.) to deploy your application.

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

        Hi,

        I suppose you are referring to Qt Creator's version ?

        "Here":http://qt-project.org/wiki/Deploy_an_Application_on_Windows you can find a nice wiki entry that shows how to do that.

        For more details there's the "deployment documentation":http://qt-project.org/doc/qt-4.8/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
        • M Offline
          M Offline
          Morgan Peters
          wrote on last edited by
          #4

          Hi SGaist Thanks for replying! the link that you gave, the one about how to deploy an application on windows, that does answer my question of how to make a stand alone exe, right? Or are you talking about something else?

          1 Reply Last reply
          0
          • C Offline
            C Offline
            ChrisW67
            wrote on last edited by
            #5

            The wiki page is about identifying all the components needed to deploy a dynamically linked (shared library) version of your application.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              Morgan Peters
              wrote on last edited by
              #6

              So... Basically a stand alone version? This is getting confusing...

              1 Reply Last reply
              0
              • C Offline
                C Offline
                ChrisW67
                wrote on last edited by
                #7

                What do you mean by standalone?

                • A single application executable without other supporting library files that can be run on a target machine that does not have Qt available.
                • An executable and a bundle of supporting library files that can be run on a target machine that does not have Qt available.

                The first option is closest to a static executable. It involves much more work.

                The second (and most common) is a bundle of files that uses Qt as shared libraries. This is what the wiki is addressing. If needed, you can produce a single installer executable from this bundle using one of the tools I mentioned earlier.

                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