There are a few main steps to getting this working:
- Install tools - Android SDK (along /w JDK and build-tools), and the NDK
- Configure project - setting up AndroidManifest.xml, adding android_native_app_glue to your project
- Build - setup Android.mk for use with ndk-build, and write a simple build script to pipe it all together
If you haven't already, you'll need to install the Android SDK (which I think includes the JDK? Otherwise grab that as well), the Android NDK, and the SDK build-tools. You can do that using SDK manager. Downloading these will get you the following tools:
- ndk-build (NDK) - for building the final .so file for the .apk
- aapt (build-tools) - this is for packaging your .apk (app) file