How to setup Qt Creator for android 16kb pages ?
-
Hello all,
I am not able to find the right setup in Qt Creator to build a 16 kb pages app.
I have tested several configurations: Qt version 6.8, 6.9, 6.9.2 and 6.10, gradle 8.6, 8.12, 8.13, sdk 35 and 36, ndk 27 to 29.
All the tests I have run on 16kb Pages simulator gave the same results: "your app in not 16 kb pages aligned", what was confirm by zalign tool.
I have tried also to include the max page size in checklists.txt, that gave the same result.
I don't understand what's happen because android forums say that ndk 28+ should align by default the 16 kb pages!
Some help would be very much appreciated,
Have a nice day,
Philippe. -
I am in the same situation, i don't have find any statement from Qt;
My understanding is that we need a version of the qt libs for android compiled in 16KB (i don't know if they will still work on 4KB android system or if we will need to package the two format in the aab (in addition to the differents architectures).So two options i think :
- Rebuild ourself Qt android with 16KB support (don't sound easy);
- Wait for the 6.9.3 that should support that : https://forum.qt.io/topic/163238/qt-for-android-and-16-kb-page-size-official-roadmap-and-temporary-solutions/3
I don't know where ekkescorner find this info; but the 6.9.3 should land between the 25 and the 30 of this month : https://wiki.qt.io/Qt_6.9_Release
So... I will wait a little.
-
I am in the same situation, i don't have find any statement from Qt;
My understanding is that we need a version of the qt libs for android compiled in 16KB (i don't know if they will still work on 4KB android system or if we will need to package the two format in the aab (in addition to the differents architectures).So two options i think :
- Rebuild ourself Qt android with 16KB support (don't sound easy);
- Wait for the 6.9.3 that should support that : https://forum.qt.io/topic/163238/qt-for-android-and-16-kb-page-size-official-roadmap-and-temporary-solutions/3
I don't know where ekkescorner find this info; but the 6.9.3 should land between the 25 and the 30 of this month : https://wiki.qt.io/Qt_6.9_Release
So... I will wait a little.
I don't know where it's stated officially but the user here indirectly confirmed that this solution apparently works:
-
see https://bugreports.qt.io/browse/QTBUG-131514
Fix Version/s: 6.5.10, 6.8.6, 6.9.3, 6.10.0, 6.11.0 FF -
see https://bugreports.qt.io/browse/QTBUG-131514
Fix Version/s: 6.5.10, 6.8.6, 6.9.3, 6.10.0, 6.11.0 FF@ekkescorner Thank you :!
@Pl45m4 It's not clear to me if the cmake flag is used on a qt android app, a shared native lib, or even on a qt build itself.
I have tried it without success on my app, at launch android complains that the Qt libs are 4KB aligned.
My understanding is that only my app has been affected by the flag, and not the qt lib (still in 4KB). -