How to reduce the size of my deployed app
-
I've developed a console app in QT on the Linux machine.
For deployment i used cqtdeploy .The app is smaller is size but i noticed that the larger size is due to the libicudata.so file (~24MB).
Is this file really necessary? How come I avoid this bulky file ?
-
I've developed a console app in QT on the Linux machine.
For deployment i used cqtdeploy .The app is smaller is size but i noticed that the larger size is due to the libicudata.so file (~24MB).
Is this file really necessary? How come I avoid this bulky file ?
Is this file really necessary?
libicudata
contains information needed to map different timezones, daytime saving and the like, including historic data. That's why it's a bit larger. It's needed by QtCore on the target machine. If it's necessary to deploy a copy of it, is another question. It's not a bold assumption to expect ICU being installed on a Linux machine that is able to run any sort of calender / world clock. Moreover, ICU is free. If you want to be absolutely sure, you can even write check script that prompts the user to install libicu.How come I avoid this bulky file ?
My apologies - I don't know how you eventually came to avoid the file. And if you did, why are you posting the question?
-
Is this file really necessary?
libicudata
contains information needed to map different timezones, daytime saving and the like, including historic data. That's why it's a bit larger. It's needed by QtCore on the target machine. If it's necessary to deploy a copy of it, is another question. It's not a bold assumption to expect ICU being installed on a Linux machine that is able to run any sort of calender / world clock. Moreover, ICU is free. If you want to be absolutely sure, you can even write check script that prompts the user to install libicu.How come I avoid this bulky file ?
My apologies - I don't know how you eventually came to avoid the file. And if you did, why are you posting the question?
@Axel-Spoerl said in How to reduce the size of my deployed app:
How come I avoid this bulky file ?
My apologies - I don't know how you eventually came to avoid the file. And if you did, why are you posting the question?
@Axel-Spoerl I might be wrong but it think the OP wanted to write: "How can I avoid this file ?" :-)
-
@Axel-Spoerl said in How to reduce the size of my deployed app:
How come I avoid this bulky file ?
My apologies - I don't know how you eventually came to avoid the file. And if you did, why are you posting the question?
@Axel-Spoerl I might be wrong but it think the OP wanted to write: "How can I avoid this file ?" :-)
@SGaist Now I feel really stupid. And rightfully so!
@johndummy Sorry!
You can't avoid to have it on the target machine.
But you can avoid to deploy it explicitly by expecting as a dependency. As said above, the bullet-proof avoidance scenario is a script with an install-prompt. -
I've developed a console app in QT on the Linux machine.
For deployment i used cqtdeploy .The app is smaller is size but i noticed that the larger size is due to the libicudata.so file (~24MB).
Is this file really necessary? How come I avoid this bulky file ?
Is this file really necessary?
Yes, Qt6Core.so is linked to it.
How come I avoid this bulky file ?
You cannot entirely avoid it, but you maybe able to tailor and ship a reduced size version if your particular application does not need certain of the ICU features.
See Customizing ICU’s Data Library