-
Notifications
You must be signed in to change notification settings - Fork 18
Compiling RubiChess for Android
Some notes on how to cross-compile RubiChess for Android using Windows (using Linux should be even easier)
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
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
List VMs:
/home/andreas/Android/Sdk/emulator/emulator -list-avds
Cold boot VM:
/home/andreas/Android/Sdk/emulator/emulator -avd Android_5.0_API_21_armv8 -no-snapshot-load