why the size of my qt file is very big?
-
the size of my compiled program in qt is very big it's like 27mB. it's there some way to make it more light?
-
the size of my compiled program in qt is very big it's like 27mB. it's there some way to make it more light?
-
@jsulm i build with static libraries using qt in debug mode and release i can too. but the size is very big. its not possible to reduce the size or make my application more light?
@RIVOPICO said in why the size of my qt file is very big?:
static libraries
Well, that explains it. You can't expect your executable to be small if you use static libs. Why is it an issue if your executable is 27MB? Do you use it on a very limited hardware?
Use release mode then it should become smaller (but still bigger than using shared libraries). -
@jsulm i build with static libraries using qt in debug mode and release i can too. but the size is very big. its not possible to reduce the size or make my application more light?
@RIVOPICO said in why the size of my qt file is very big?:
@jsulm i build with static libraries using qt in debug mode and release i can too. but the size is very big. its not possible to reduce the size or make my application more light?
Yes, you can certainly make it smaller by using dynamic libraries instead of static ones! You may get a size reduction in Release instead of Debug mode.
-
@jsulm i build with static libraries using qt in debug mode and release i can too. but the size is very big. its not possible to reduce the size or make my application more light?
-
Hi,
With Qt Lite you can remove everything you don't use and that is not a dependency of what you are using. So it might be a lot.
If you want to use a Qt 5.9 static build, then you'll have to build it yourself. Keep in mind the licensing implication of using a static build of Qt.
-
Hi,
With Qt Lite you can remove everything you don't use and that is not a dependency of what you are using. So it might be a lot.
If you want to use a Qt 5.9 static build, then you'll have to build it yourself. Keep in mind the licensing implication of using a static build of Qt.
-
What do you mean by import ?
You either build your application with your static 5.6 or with your current 5.9.
-
What do you mean by import ?
You either build your application with your static 5.6 or with your current 5.9.
@SGaist i build qt 5.6 static with msvc2013 and it's static. If i use a new version of qt 5.9 i can use my static compiler because maybe i'm wrong but msvc static is the compiler not qt. So like i have msvc 2013 static maybe i can use it on the new version of qt without repeating all the process not sure.
-
There's no such thing as a "static compiler". You compiled a static version of Qt which is a set of libraries., So when building your application with that version of Qt, you'll be linking to it.
The version of Qt 5.9 that you installed is a set of shared libraries. So if you want to link to a 5.9 statically, you will first have to compile it statically.