Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-38296

Allow blacklisting unneeded libraries or plugins

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • 5.2.1, 5.6.1
    • Build System
    • QtMobile 5.2.1 on Nexus 5 running Android 4.4.2

    • Android

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              rampe Rami Potinkara
              broulik Kai Uwe Broulik
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              4 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes