App size
-
Hello all, I've been messing around with the Wiggly example widget from Qt. The application is only 34 kb, but it requires 6 dlls to run properly. (Qt5Core.dll, Qt5Gui.dll, Qt5Widgets.dll, icudt51.dll, icuin51.dll and icuuc51.dll)
Is there a way to reduce it's size, because a simply text draw app can't be 39 mb in size. I was reading about static linking but I don't want to use that, for some reasons. I was thinking, since the app doesn't use all the functions in these dlls, can I somehow cut them off, so the program will use only the necessary things?
Thanks in advance.
-
Hi and welcome to devnet,
If you don't want to use static linking the only other option would be to rebuild Qt by disabling all the features you don't need. That's a pretty long process and there are very few people that uses this option.
-
[quote author="SGaist" date="1376767159"]Hi and welcome to devnet,
If you don't want to use static linking the only other option would be to rebuild Qt by disabling all the features you don't need. That's a pretty long process and there are very few people that uses this option.[/quote]
Hi and thank you for the reply. If I'd like to use static linking will the final size be like 2-3 mb or smaller? How really does this work?
-
It all depends of what you use from the libraries so I can't tell you the final size of your application.
What do you mean by "how really does this work ?" ?
-
I mean, the static linking itself removes the unnecessary stuff (functions) from these libraries so the final size gets smaller?
I'm talking about the Wiggly widget example right now. It's 39 mb with all these 6 dlls. The archived version is about 10 mb, anyway that's very huge for that kind of application.
-
It all depends on what your application uses from the libraries.