I am quite new to Qt programming, and i tried long to understand how linking the libraries work. I need to distribute a small program - 1000 lines or so - that i developed to a few people.
I built statically Qt because I need a static build, and now my programs size increased drammatically.
I only use Qpushbuttons, Qlinedits, Qlabels, and a few more things and I ended up with a compiled program of over 160Mb, while just a few MB would be reasonable.
I assume it included unwanted libraries and classes (only explanation).
How can I keep the size something acceptable with a static build?
I'm running linux 64bit and need to compile as such and for it.
thanks
I'm assuming that you are doing a project build in debug mode. I propose to build application in the release mode. The size of the output file will decrease dramatically.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With