Reputation: 7588
So I want to find a tutorial that teach how to build single EXE using Qt. i use mingw and windeployqt for deployment (still some dll is missing and i manually copy them) then it works.
But i do not understand the steps in https://wiki.qt.io/Build_Standalone_Qt_Application_for_Windows
It indicated to build static version of Qt.
> configure -static -release -no-exceptions
> mingw32-make sub-src
But where do i type this at? When I open Cmd prompt and type it immediately, it just say "configure" is not recognized as an internal or external command....
Does this mean I need to close Qt Creator, build a "static" version of Qt Creator and then run a static version of Qt Creator? It is very confusing for me. Apologies cause I am new to this.
Upvotes: 0
Views: 1541
Reputation: 7588
I gave up on building a static single EXE, but instead it is way easier just to pack everything into an Installer. Inno Setup is the one i used. If you want to learn how to use it, read here at my blog: https://qtnoobies.blogspot.com/2017/11/qt-tutorial-distributing-your.html
Upvotes: 0
Reputation: 1
You need to download the source code of QT from https://download.qt.io/archive/qt/
Or install QT with its source code (you can select it in somewhere in qt installer)
Then you can find the "configure" in the root folder of the source code. (In windows it will be configure.bat). And you need to build Qt static Libs before you build your static application.
Upvotes: 0
Reputation: 36
You can use http://www.jrsoftware.org/isinfo.php to create an installer and use qt dll instead to build an exe with qt static libraries.
Upvotes: 0
Reputation: 5482
Make sure you have mingw, perl and python in your path. Download Qt source zip of your choice from here. Extract zip to the file system, e.g. C:\src\
Now you open a command prompt, go into the Qt source root and run configure and make from there.
cd C:\src\qt-<something>
Upvotes: 1