On 24.04.2014 07:48, tw_bolek wrote:
Hello guys,

Has anyone managed to get the -threshold option of rcc (resource compiler) to 
work?   By default the threshold is quite high and leaves many files 
uncompressed in the resource, so I usually change it to much lower threshold.  
It used to work fine on Symbian and Harmattan, it does work on BB10,  but on 
Sailfish OS adding e.g.

-threshold 2

to rcc command in Makefile (to get threshold level of 2%) doesn't seem to have 
any result whatsoever - all the files remain uncompressed while with such a 
very low threshold everything should be compressed...  Also tried other values, 
e.g. 10, to no avail.


I believe the problem may be that the Makefile is recreated every time you press build because of limitations in the qt creator / virtual machine integration. You could try adding QMAKE_RESOURCE_FLAGS to your "spec" file in a suitable place.

QMAKE_RESOURCE_FLAGS += -threshold 0 -compress 9


That example is from [1].

[1] http://qt-project.org/doc/qt-5/qmake-variable-reference.html

Best regards,
 Juha

_______________________________________________
SailfishOS.org Devel mailing list

Reply via email to