Skip to content

build-android: modernize for NDK 26 / libc++;#2021

Open
haithngn wants to merge 1 commit into
masterfrom
fix/build-android
Open

build-android: modernize for NDK 26 / libc++;#2021
haithngn wants to merge 1 commit into
masterfrom
fix/build-android

Conversation

@haithngn

Copy link
Copy Markdown
Member

The Android build targeted the 2016 gnustl + NDK r17 toolchain, removed in NDK r18+. Port it to libc++ / NDK 26 and adjust for modern devices so the .aar links, loads, and runs.

Build system (build-android/):

  • Application.mk (new): APP_STL := c++_static,APP_PLATFORM := android-23, -Wl,-z,max-page-size=16384 (16 KB-page alignment for Android 15+ / Play 2025).

  • Android.mk: drop gnustl includes/LDLIBS; add -DUSE_FILE32API; add a prebuilt iconv module; link order etpan sasl2 ssl crypto iconv icu4c xml2 tidy ctemplate.

  • build.sh: use APP_ABI/APP_PLATFORM (drop the GCC 4.9 pin); ABIs armeabi-v7a/arm64-v8a/x86 (drop removed armeabi +unsupported x86_64); stop copying libc++_shared (static libc++); pass
    -DCMAKE_POLICY_VERSION_MINIMUM=3.5 for CMake 4; extract pre-existing dep zips; rm stale .aar before re-zipping.

  • Replace example with Kotlin app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants