[Interest] lupdate -compress makes files BIGGER?

Konrad Rosenbaum konrad at silmor.de
Fri Jul 29 21:34:04 CEST 2016


Hi,

I did some searching - the -compress switch to lrelease apparently has 
issues - don't use it! It may be removed later on anyway.

If you need to save space there are a couple of other things you can do:

1) CONFIG+=release to use the stripped Qt libraries

2) strip your binaries

3) check you aren't using any unnecessary libraries, strip those you need to 
have

4) only copy the plugins that you really need (e.g. the qminimal plugin is 
only needed for tests without GUI)

5) check you aren't using any unnecessary resources - some may be smaller if 
you use a different format (e.g. svg is usually smaller than rendered 
pictures)

Note: there is no need to compress resources with zip, gzip or similar 
programs - they are compressed with deflate (gzip-like) when the resource 
file is compiled. For pictures it depends on the content whether jpeg or png 
is more efficient - esp. after resource compression.

6) you may be able to save significant amounts of space if you compile Qt 
and its dependencies yourself - e.g. ICU can be reduced significantly if you 
remove locales

7) as a last resort you can compress translation files with qCompress and 
use the QTranslator::load overload that takes raw data

http://doc.qt.io/qt-5/qbytearray.html#qCompress



	Konrad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160729/45027444/attachment.sig>


More information about the Interest mailing list