Skip to content

Compiling RubiChess for Android

Matthies edited this page Nov 12, 2022 · 12 revisions

Some notes on how to cross-compile RubiChess for Android using Windows (using Linux should be even easier)

NDK

Download and unzip latest NDK from https://developer.android.com/ndk/downloads or install via SDK manager in Android Studio; I'm using 25.1.8937393

Start msys2 shell and create a symbolic link /android for the tool chain folder

$ ln -s /c/Users/andreas/AppData/Local/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/ /android

Compile

To cross-compile RubiChess for ARM cpu in msys2 shell first add /andoid/bin to your PATH and then set COMP=ndk and ARCH=armv7 resp. ARCH=armv8 in the make command

$ export PATH=/android/bin:$PATH
$ make COMP=ndk ARCH=armv7

Clone this wiki locally