Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to make a stand alone exe in qt 3.0.0
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.
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
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.
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
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?
The wiki page is about identifying all the components needed to deploy a dynamically linked (shared library) version of your application.
So... Basically a stand alone version? This is getting confusing...
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.