[Interest] Qt6: Android: huge APK ?
Alexandru Croitor
alexandru.croitor at qt.io
Wed Jul 6 15:01:29 CEST 2022
Stripping of the libraries probably fails when Qt for Android is built on a Windows host. Please file a bug report.
> On 6. Jul 2022, at 14:50, Alexander Dyagilev <alervdvcw at gmail.com> wrote:
>
> Downloaded Android 6.4.0 - same sizes.
>
> On my Ubuntu, yes, libQt6Qml_armeabi-v7a.so is around 2-4MB (do not remember exact size).
>
> So, it seems it's just Windows. What is going on?...
>
> On 7/6/2022 9:57 AM, Alexandru Croitor wrote:
>> Hi,
>>
>> 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:
>>>
>>> Hello,
>>>
>>> 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
>>> https://lists.qt-project.org/listinfo/interest
More information about the Interest
mailing list