a simple hello world gui app 13mb is there a way to reduce the size ?
-

a simple gui hello world is 13mb
is there a way to reduce this size it is too large ?
qt creatore version : 4.11.0
qt version : 5.12.12
msvc 2019
-
Hi,
Are you using a static build of Qt ?
-
@SGaist yes it is static
-
Compile in release mode, don't use static builds.
-
Compile in release mode, don't use static builds.
@Christian-Ehrlicher i want static no dlls
-
Then you must live with it. Your app needs a lot of functionality even you don't see them in your simple test app and when you compile in debug mode even debug symbols.
-
Yes it is crazy how bloated a Qt executable is. You can no longer fit any kind of simple Qt application on a floppy disk. I have learned to live with it, as I do like that I can build the same code for both win32 and Linux. If you only need a windows build, the Borland/Embarcadero VCL (C++ Builder) is a rapid application development framework that makes same GUI features to executables that are less than 200 kB, which you can fit several on a floppy disc.
And yes, I also only do static builds, as that is the only way you can guarantee that the program works without conflicts and missing dependencies for a long time.
-
Yes it is crazy how bloated a Qt executable is. You can no longer fit any kind of simple Qt application on a floppy disk. I have learned to live with it, as I do like that I can build the same code for both win32 and Linux. If you only need a windows build, the Borland/Embarcadero VCL (C++ Builder) is a rapid application development framework that makes same GUI features to executables that are less than 200 kB, which you can fit several on a floppy disc.
And yes, I also only do static builds, as that is the only way you can guarantee that the program works without conflicts and missing dependencies for a long time.
@TomA said in a simple hello world gui app 13mb is there a way to reduce the size ?:
that makes same GUI features to executables that are less than 200 kB
And then you are missing the runtime dlls - you won't get down to a flopy disc for a static build with any recent gui toolkit nowadays. A Qt executable without the runtime dlls like the one above is about 100kb...
-
Yes it is crazy how bloated a Qt executable is. You can no longer fit any kind of simple Qt application on a floppy disk. I have learned to live with it, as I do like that I can build the same code for both win32 and Linux. If you only need a windows build, the Borland/Embarcadero VCL (C++ Builder) is a rapid application development framework that makes same GUI features to executables that are less than 200 kB, which you can fit several on a floppy disc.
And yes, I also only do static builds, as that is the only way you can guarantee that the program works without conflicts and missing dependencies for a long time.
-
A tiny Qt GUI app showing 13 MB is normal, Qt brings along a lot of runtime stuff. If you want to shrink it, you need to use a release build and only include the modules you actually use. Static builds can make it even smaller. You won’t get it tiny like a console app, but you can shave off a good bit of that size.