This is an old revision of the document!
This guide is based on Android 188.8.131.52 and NDK version r10. The NDK used was slightly oldish compared to the latest Android Studio. This guide needs to be evaluated with the latest NDK release.
You will need to install the latest Android Studio from here: http://developer.android.com/sdk/index.html Warning though, Android Studio is 887MB.
Once installed, and Android Studio runs for the first time, it will download a whole lot of SDK stuff for you. This will take time because it is another huge download time (yet, it's automatic).
Install the NDK from: http://developer.android.com/ndk/index.html
If your NDK was packaged as an installer, the environment variable would have been set. If not, set one in the PATH variable to point to folder where the ndk-build command is located.
cd <SOME_FOLDER_FOR_ORX> hg clone https://bitbucket.org/orx/orx
There are two important things in the version of orx from bitbucket:
1. Orx library for Android (we can compile this ourselves, even though one is supplied pre-compiled) 2. The Android Demo Project
The Orx library will need to be compiled for Android so that it can be used in other projects (like yours). The Android Demo will serve as a project template for your own project.
Let's do that now.
You can now move to the next step: Compiling orx and the Android demo for compiling orx, and testing if the demo project compiles and works on your device.