[OE-core] qt4-embedded - tweaking configure options to reduce binary size
John Stirling
ap.john.stirling at gmail.com
Thu Feb 27 11:05:06 UTC 2014
I'm attempting to cut out some features to reduce our binary size a bit.
I added a .bbappend file (to overwrite QT_CONFIG_FLAGS setup in qt4.inc
etc) -
PRINC := "${@int(PRINC) + 1}"
QT_CONFIG_FLAGS := "-embedded $QT_ARCH \
-qtlibinfix E \
-plugin-gfx-transformed -plugin-gfx-qvfb
-plugin-gfx-vnc -plugin-gfx-directfb \
-plugin-mouse-tslib -qt-mouse-pc -qt-mouse-qvfb
-qt-mouse-linuxinput \
-qt-kbd-tty -qt-kbd-linuxinput \
-DQT_KEYPAD_NAVIGATION \
-release -no-cups -reduce-relocations \
-shared -no-nas-sound -no-nis \
-system-libjpeg -system-libpng -system-libtiff
-system-zlib \
-no-pch -stl -glib \
-no-rpath -silent \
-qdbus \
-no-qt3support \
-no-webkit \
-no-phonon \
-no-sql-ibase -no-sql-mysql -no-sql-psql -no-sql-odbc
-plugin-sql-sqlite -system-sqlite -no-accessibility -no-sm \
-exceptions -no-fast"
When rebuilding I'm seeing the amended options appear in run.do_configure
but it doesn't seem to make any difference to the binary sizes.
I expect some form of finger trouble at this end but does anyone have any
advice on this ?
My current Qt libs are -
-rwxr-xr-x root root 2993840 ./usr/lib/libQtCoreE.so.4
-rwxr-xr-x root root 439440 ./usr/lib/libQtDBusE.so.4
-rwxr-xr-x root root 2882400 ./usr/lib/libQtDeclarativeE.so.4
-rwxr-xr-x root root 8787152 ./usr/lib/libQtGuiE.so.4
-rwxr-xr-x root root 1090028 ./usr/lib/libQtNetworkE.so.4
-rwxr-xr-x root root 2108856 ./usr/lib/libQtScriptE.so.4
-rwxr-xr-x root root 205388 ./usr/lib/libQtSqlE.so.4
-rwxr-xr-x root root 214292 ./usr/lib/libQtXmlE.so.4
-rwxr-xr-x root root 3519484 ./usr/lib/libQtXmlPatternsE.so.4
Thanks
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20140227/977b0e47/attachment-0002.html>
More information about the Openembedded-core
mailing list