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. [SOLVED] Update on android 15 new page size memory 16KB
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Update on android 15 new page size memory 16KB

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 85 Views
  • 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.
  • SMF-QtS Offline
    SMF-QtS Offline
    SMF-Qt
    wrote last edited by SMF-Qt
    #1

    Re: Android 15 new page size memory 16KB

    I am in the process of setting up a Qt Andoid environment and my new Qt 6.9.1 arm64-v8a shared libraries have been throw out by android-studio because they are 4k aligned not 16k.
    (using android-studio because I haven't got qtcreator working correctly yet for Andoid).

    Apparently the following linker commands need to be added to the build process.

    -Wl,-z,max-page-size=16384 and -Wl,-z,common-page-size=16384

    I do not know how to do that because I have limited cmake skills so any suggestions would be good.

    Thanks.

    jsulmJ 1 Reply Last reply
    0
    • SMF-QtS SMF-Qt referenced this topic
    • SMF-QtS SMF-Qt

      Re: Android 15 new page size memory 16KB

      I am in the process of setting up a Qt Andoid environment and my new Qt 6.9.1 arm64-v8a shared libraries have been throw out by android-studio because they are 4k aligned not 16k.
      (using android-studio because I haven't got qtcreator working correctly yet for Andoid).

      Apparently the following linker commands need to be added to the build process.

      -Wl,-z,max-page-size=16384 and -Wl,-z,common-page-size=16384

      I do not know how to do that because I have limited cmake skills so any suggestions would be good.

      Thanks.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote last edited by
      #2

      @SMF-Qt See here how to set compiler flags: https://cmake.org/cmake/help/latest/command/add_compile_options.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      SMF-QtS 1 Reply Last reply
      2
      • jsulmJ jsulm

        @SMF-Qt See here how to set compiler flags: https://cmake.org/cmake/help/latest/command/add_compile_options.html

        SMF-QtS Offline
        SMF-QtS Offline
        SMF-Qt
        wrote last edited by
        #3

        @jsulm

        Thanks for that, added the "add_link_options" near the top of the Qt 6.9.1 top level CMakeLists.txt and the completed build is now 16k aligned:

        ...
        qt_internal_top_level_setup_autodetect()

        add_link_options(-Wl,-z,max-page-size=16384 -Wl,-z,common-page-size=16384)

        project(Qt
        VERSION "${QT_REPO_MODULE_VERSION}"
        DESCRIPTION "Qt Libraries"
        HOMEPAGE_URL "https://qt.io/"
        LANGUAGES CXX C
        )
        ...

        1 Reply Last reply
        2

        • Login

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