Details
-
Suggestion
-
Resolution: Incomplete
-
P3: Somewhat important
-
None
-
5.2.1, 5.6.1
-
QtMobile 5.2.1 on Nexus 5 running Android 4.4.2
Description
When deploying a Qt Android application, there are a lot of unneccessary libraries bundled with the apk making it really large.
QT += qml quick gui network svg xml xmlpatterns androidextras
In the resulting QtApp-debug.apk in lib/armeabi-v7a there are .so files bundled I do not use or need (or don't know what they're used for), such as:
libQt5QuickParticles.so 277,3 kiB (I don't use Quick particles at all)
libav*.so total ~3MiB (I don't use QtMultimedia)
libplugins_imageformats_libtiff.so 284,9 kiB (I don't use TIFF images, nor do I use GIF, ICO, MNG, TGA or WBMP)
libqml_Qt_labs_folderlistmodel_libqmlfolderlistmodelplugin.so (I don't use the folderlistmodel - it's used in some Qt examples though?)
Especially the unneeded image plugins really should not be there if not needed.
In total the apk is now around 12MiB in size (although I have also packaged quite a few 3rd party Android libs with it) and the installed size is 35MiB which is insane.
Attachments
Issue Links
- is duplicated by
-
QTBUG-67022 Make it possible to filter plugins out of deployment
- Closed
- is required for
-
QTBUG-50456 Improve deployment: "make deploy"
- Reported
- relates to
-
QTBUG-52466 Styles need to be explicitly imported to work with static builds
- Closed