[Qt-interest] Minimizing QtCore size
Peter Kümmel
syntheticpp at gmx.net
Mon Jan 11 20:12:09 CET 2010
I'm looking for a way to strip down the size of QtCore.
Nokia states at its requirement site
http://qt.nokia.com/doc/4.6/requirements-embedded-linux.html
a minimal size of 1.9 MB for arm and gcc 4.1.
But this is too much for me. I only wanna the thread support
and the signal/slot mechanism for communication between the
threads (Qt::QueuedConnection). I've used qconfig and disabled
all other features than QThread but QtCore is still too big.
Also linking QtCore statically (letting ld removing all unused
stuff) does not help. (all with -Os)
What's the best way too proceed? For example, would it help
to remove all the codepages from QString? I don't need Utf
support, QLatin1String would be enough.
I really wonder why such 'minimal' functionality (event loop,
signal/slots, reflection, threads) needs so much space.
Are the alternatives which are comfortable as Qt
API/cross-platform? Something from the Gnome world, maybe
glib? I assume, using boost will also not help because of all
the template instantiations.
Any recommendations?
Many thanks,
Peter
(there where no answers on Qt-embedded-interest)
More information about the Qt-interest-old
mailing list