[Interest] Qt6: Android: huge APK ?
alexandru.croitor at qt.io
Wed Jul 6 08:57:36 CEST 2022
Which host platform are you using? Also consider trying with a newer Qt version than 6.3.1.
At least on macOS, the libQt6Qml library sizes are ok for me.
ls -lh ../6.1.3/android_armv7/lib/libQt6Qml_armeabi-v7a.so
-rwxr-xr-x 1 alex staff 2.6M Aug 27 2021 ../6.1.3/android_armv7/lib/libQt6Qml_armeabi-v7a.so
ls -lh ../6.2.4/android_armv7/lib/libQt6Qml_armeabi-v7a.so
-rwxr-xr-x 1 alex staff 2.7M Mar 7 20:24 ../6.2.4/android_armv7/lib/libQt6Qml_armeabi-v7a.so
ls -lh ../6.3.1/android_armv7/lib/libQt6Qml_armeabi-v7a.so
-rwxr-xr-x 1 alex staff 2.7M Jun 6 21:04 ../6.3.1/android_armv7/lib/libQt6Qml_armeabi-v7a.so
> On 5. Jul 2022, at 21:51, Alexander Dyagilev <alervdvcw at gmail.com> wrote:
> APK sizes for my application (release version, armv7a, built using Qt Creator):
> Qt 5.12.12 - 37 MB.
> Qt 6.1.3 - 216 MB.
> What is going on?
> I've compared Qt's sizes. It seems Qt6 is much bigger. For example:
> libQt5Qml.so - 4.4 MB
> libQt6Qml_armeabi-v7a.so - 92 MB
> Qt Creator "forgets" to strip symbols? Something else? I don't want to believe that it's OK and now all Qt apps under Android has to be 200+ MB of size.
> Interest mailing list
> Interest at qt-project.org
More information about the Interest