Skip to content

ADFA-5302: select the on-device aarch64 NDK (r29+) so termux-core compiles on Android - #485

Merged
luisguzman-adfa merged 1 commit into
mainfrom
feat/ADFA-5302-ondevice-ndk-select
Aug 27, 2026
Merged

luisguzman-adfa merged 1 commit into
mainfrom
feat/ADFA-5302-ondevice-ndk-select

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

On-device (Code on the Go), :termux-core:configureCMakeDebug failed with a shell "syntax error: unexpected ')'" — AGP's default NDK/CMake are x86_64 host binaries the aarch64 device can't execute. Compile with the correct-arch NDK instead of shipping a prebuilt.

Only on an aarch64 Android host (os.arch=aarch64 + Linux + /system/build.prop): auto-select the highest NDK r29+ installed under the SDK's ndk/ (from Code on the Go's "NDK Installer" plugin) and set android.ndkVersion — dynamic, since AGP's ndkVersion is an exact string match (no ">="), so a newer r29 build keeps working with no edit. Warns (pointing at the NDK Installer plugin) if none is present. Off-device builds are byte-for-byte unchanged.

…piles on Android

On-device (Code on the Go), :termux-core:configureCMakeDebug failed with a shell
"syntax error: unexpected ')'" — AGP's default NDK/CMake are x86_64 host binaries
the aarch64 device can't execute. Compile with the correct-arch NDK instead of
shipping a prebuilt.

Only on an aarch64 Android host (os.arch=aarch64 + Linux + /system/build.prop):
auto-select the highest NDK r29+ installed under the SDK's ndk/ (from Code on the
Go's "NDK Installer" plugin) and set android.ndkVersion — dynamic, since AGP's
ndkVersion is an exact string match (no ">="), so a newer r29 build keeps working
with no edit. Warns (pointing at the NDK Installer plugin) if none is present.
Off-device builds are byte-for-byte unchanged.
@luisguzman-adfa
luisguzman-adfa merged commit 128b517 into main Aug 27, 2026
3 checks passed
@luisguzman-adfa
luisguzman-adfa deleted the feat/ADFA-5302-ondevice-ndk-select branch August 27, 2026 11:02
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.

1 participant