Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. how to enable 16KB page size on c++ android app using qmake
Forum Updated to NodeBB v4.3 + New Features

how to enable 16KB page size on c++ android app using qmake

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 4 Posters 612 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Qt-User0307
    wrote last edited by Qt-User0307
    #1

    Hello,
    about 2 months ago i have programmed an app which currently uses the old standard 4KB page size, but now google changes the standard to 16KB in 2026, so my question is how can i change my app to use 16KB page size instead of 4KB?

    I am using Qt 6.6.3 with qmake.

    i have already looked around and found this post:
    https://forum.qt.io/topic/162567/solved-update-on-android-15-new-page-size-memory-16kb

    i tried the flag aswell and installed the app on a 16KB emulator, but when i try to start the app it tells me that the app is not a 16KB page size app and it crashes.

    Do you know any way to enable 16KB page size?

    Thanks yall for your responses!!

    S 1 Reply Last reply
    0
    • Q Qt-User0307

      Hello,
      about 2 months ago i have programmed an app which currently uses the old standard 4KB page size, but now google changes the standard to 16KB in 2026, so my question is how can i change my app to use 16KB page size instead of 4KB?

      I am using Qt 6.6.3 with qmake.

      i have already looked around and found this post:
      https://forum.qt.io/topic/162567/solved-update-on-android-15-new-page-size-memory-16kb

      i tried the flag aswell and installed the app on a 16KB emulator, but when i try to start the app it tells me that the app is not a 16KB page size app and it crashes.

      Do you know any way to enable 16KB page size?

      Thanks yall for your responses!!

      S Offline
      S Offline
      SimonSchroeder
      wrote last edited by
      #2

      @Qt-User0307 said in how to enable 16KB page size on c++ android app using qmake:

      i tried the flag aswell and installed the app on a 16KB emulator, but when i try to start the app it tells me that the app is not a 16KB page size app and it crashes.

      How did you try to add the flags to qmake? Can you show the line you added?

      1 Reply Last reply
      0
      • J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote last edited by
        #3

        From what I gathered,

        updating your ndk to 27+ (29 is the latest stable release) should auto enable the 16k page option


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          steno
          wrote last edited by steno
          #4

          NDK version 28 supports it by default. For android 27 I just add this in my gradle file.

           externalNativeBuild {
                      cmake {
                          cppFlags '-std=c++23'
                          arguments "-DCMAKE_VERBOSE_MAKEFILE=ON", '-DANDROID_STL=c++_shared', "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON"
                      }
                  }
          

          The important bit is ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

          For ndk less than 27 I would seek out what google says. As of right now, it doesn't look like the Qt libraries for 6.9.2 support it yet anyways.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved