build mod in aarch64
Support build geode mod in aarch64, in android, via termux or all other terminal? I'm trying to make a build, but it crashes on the build Codegen
it.... does?
Here's a screenshot
we don't officially support building on android / arm linux, thus you might have to build Geode CLI yourself. though if you follow the steps in the docs you should be able to get it working
Hmm, that's very strange, mine crashes during build codegen with errors result.hpp . What installed packages do you use in termux? And how do you start the build? I do
geode build -p android64
And yes, before that I build a geode cli
Upd:
I just tried to build a new mod and the codegen built but the build still failed
19 errors
oh you cant use android ndk r27b
https://github.com/lzhiyong/termux-ndk/issues/174
Should I use an older version? Or the one you sent? Which version are you using?
anything not r27b
On Wed, Jun 11, 2025, 1:51 PM Android_xDev @.***> wrote:
AndroidxDev left a comment (geode-sdk/geode#1380) https://github.com/geode-sdk/geode/issues/1380#issuecomment-2961453356
Should I use an older version? Or the one you sent? Which version are you using?
— Reply to this email directly, view it on GitHub https://github.com/geode-sdk/geode/issues/1380#issuecomment-2961453356, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2QUDRHZKDFIYG22BANQQPD3C7GYBAVCNFSM6AAAAAB62CABYCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSNRRGQ2TGMZVGY . You are receiving this because you commented.Message ID: @.***>
I downloaded android ndk r28, and the build doesn't even start
Maybe try a different version?
add the following lines to android-legacy.toolchain.cmake in %ANDROID_NDK_ROOT%/build/cmake
for you its linux-x86-64 instead of linux-x86_64
Yes, it helped. But everything happens wrong.
it cant find clang-19 in the same bin folder, check if the path is correct and clang-19 is there
Yes, I made sure that clang-19 is in place. Upd:
~/.../test/TestM $ clang --version clang version 20.1.6 Target: aarch64-unknown-linux-android29 Thread model: posix InstalledDir: /data/data/com.termux/files/usr/bin ~/.../test/TestM $
oh i realized you have to uninstall (s)ccache too that doesnt work with those ndk builds
more of idr actually
try running clang-19 directly
Okay
~/.../linux-x86_64/bin $ ./clang ./clang: line 1: clang-19: command not found ~/.../linux-x86_64/bin $ ./clang-19 Could not find a PHDR: broken executable? Aborted ~/.../linux-x86_64/bin $
thats nuts just to be sure are you using the one from https://github.com/zongou/android-build
Yes, that's what I use. Now I'll download the file again and unzip it again.
Unfortunately, this did not give any result, I downloaded the file from github again and unpacked it
i have no idea about this... it doesnt happen on my machine
atlease can you try the aarch64-linux-android{apiLevel}-clang stuff
Take writes broken, maybe it's because of jdk 21?
maybe try Android NDK Custom musl builds, besides make it works fine, if needed replace the make with termux one
https://github.com/HomuHomu833/android-ndk-custom/releases/download/r27c/android-ndk-r27c-arm-linux-musleabihf.tar.xz https://github.com/HomuHomu833/android-ndk-custom/releases/download/r27c/android-ndk-r27c-aarch64-linux-musl.tar.xz https://github.com/HomuHomu833/android-ndk-custom/releases/download/r28b/android-ndk-r28b-arm-linux-musleabihf.tar.xz https://github.com/HomuHomu833/android-ndk-custom/releases/download/r28b/android-ndk-r28b-aarch64-linux-musl.tar.xz https://github.com/HomuHomu833/android-ndk-custom/releases/download/r29-beta2/android-ndk-r29-beta2-arm-linux-musleabihf.tar.xz https://github.com/HomuHomu833/android-ndk-custom/releases/download/r29-beta2/android-ndk-r29-beta2-aarch64-linux-musl.tar.xz
oh hi homura
hello @HenrySck075