geode icon indicating copy to clipboard operation
geode copied to clipboard

build mod in aarch64

Open AndroidxDev opened this issue 8 months ago • 24 comments

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

AndroidxDev avatar Jun 07 '25 16:06 AndroidxDev

it.... does?

HenrySck075 avatar Jun 10 '25 06:06 HenrySck075

Here's a screenshot m

HenrySck075 avatar Jun 10 '25 06:06 HenrySck075

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

dankmeme01 avatar Jun 10 '25 08:06 dankmeme01

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 Image

AndroidxDev avatar Jun 10 '25 18:06 AndroidxDev

oh you cant use android ndk r27b

HenrySck075 avatar Jun 11 '25 00:06 HenrySck075

https://github.com/lzhiyong/termux-ndk/issues/174

HenrySck075 avatar Jun 11 '25 00:06 HenrySck075

Should I use an older version? Or the one you sent? Which version are you using?

AndroidxDev avatar Jun 11 '25 06:06 AndroidxDev

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: @.***>

HenrySck075 avatar Jun 11 '25 06:06 HenrySck075

I downloaded android ndk r28, and the build doesn't even start Maybe try a different version? Image Image

AndroidxDev avatar Jun 11 '25 07:06 AndroidxDev

add the following lines to android-legacy.toolchain.cmake in %ANDROID_NDK_ROOT%/build/cmake

Image

HenrySck075 avatar Jun 11 '25 07:06 HenrySck075

for you its linux-x86-64 instead of linux-x86_64

HenrySck075 avatar Jun 11 '25 07:06 HenrySck075

Yes, it helped. But everything happens wrong.

Image

AndroidxDev avatar Jun 11 '25 07:06 AndroidxDev

it cant find clang-19 in the same bin folder, check if the path is correct and clang-19 is there

HenrySck075 avatar Jun 11 '25 07:06 HenrySck075

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 $

Image

AndroidxDev avatar Jun 11 '25 07:06 AndroidxDev

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

HenrySck075 avatar Jun 11 '25 08:06 HenrySck075

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 $

AndroidxDev avatar Jun 11 '25 08:06 AndroidxDev

thats nuts just to be sure are you using the one from https://github.com/zongou/android-build

HenrySck075 avatar Jun 11 '25 08:06 HenrySck075

Yes, that's what I use. Now I'll download the file again and unzip it again.

AndroidxDev avatar Jun 11 '25 08:06 AndroidxDev

Unfortunately, this did not give any result, I downloaded the file from github again and unpacked it

Image

AndroidxDev avatar Jun 11 '25 08:06 AndroidxDev

i have no idea about this... it doesnt happen on my machine

atlease can you try the aarch64-linux-android{apiLevel}-clang stuff

HenrySck075 avatar Jun 11 '25 08:06 HenrySck075

Take writes broken, maybe it's because of jdk 21?

AndroidxDev avatar Jun 11 '25 09:06 AndroidxDev

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

HomuHomu833 avatar Jun 23 '25 19:06 HomuHomu833

oh hi homura

HenrySck075 avatar Jun 24 '25 00:06 HenrySck075

hello @HenrySck075

HomuHomu833 avatar Jun 24 '25 05:06 HomuHomu833