There are two steps for building OpenMW for Android. The first step is building C/C++ libraries. The second step is building the Java launcher.
You will need some standard tools installed that you probably already have (bash, gcc, g++, sha256sum, unzip).
CMake 3.6.0 or newer is required, you can download the latest version here (and place in your PATH) if your distro ships with an outdated version.
Additionally, to build the launcher you will need Android SDK installed, it is suggested that you use Android Studio which can set it up for you (see step 2).
Go into the buildscripts directory and run ./build.sh. The script will automatically download the Android native toolchain and all dependencies, and will compile and install them.
To get an APK file you can install, open the android-port directory in Android Studio and run the project.
Alternatively, if you do not have Android Studio installed or would rather not use it, run ./gradlew assembleDebug from the root directory of this repository. The resulting APK, located at ./app/build/outputs/apk/debug/app-debug.apk, can be transferred to the device and installed.
Original Java code written by sandstranger. Build scripts originally written by sandstranger and bwhaines.