You can use Ralph's (rversteegen) ndk-r12b branch, which patches these two files to target android 2.3 and later. Change android:minSdkVersion in project/AndroidManifestTemplate.xml.Change the APP_PLATFORM in project/jni/Application.mk.Also, if you want to use a recent NDK you need to change the target to something that NDK supports: x86 requires API level 9 aka android 2.3). If you want to compile for a cpu architecture/abi other than ARM/armeabi you will need to target a later Android (e.g. Fetch it with git checkout -track origin/ohrrpgce Gyroscope and accelerator appear as a joystick each. Little rectangles are drawn on screen to indicate positions of emulated joysticks. Bottom left is an emulated joystick (drag to use). At the bottom right are four buttons that do nothing. (Note: all applications aside from ohrrpgce are removed in the ohrrpgce branch, use James' sdl_android branch for this instead.) Note that the suggested sample application (ballfield) isn't quite interactive. (Optional) I suggest following the sdl-android/readme.txt instructions to try out building a sample application.git clone git:///rversteegen/commandergenius.git sdl-android.git clone git:///bob-the-hamster/commandergenius.git sdl-android (usually most up to date).Hopefully either one should work, but depending on which developer has been adding features recently, sometimes only one will work. A clone of one of the following "commandergenius" sdl-android repository forks.You can add prefix=path/to/whereever to the make commandline if you don't have a config.mk file.
However, if you use r12b you can compile for android 2.3 (api level 9) at the earliest.
The NDK directory (containing ndk-build) will need to be in your PATH (as well as ant).īoth NDK version r8e (now getting old), and r12b (the latest as of Sept 2016) have been tested to work. (I think that if you install the "SDK Tools" only then you'll need to run sudo android and download the rest of the SDK, while the 'ADT Bundle' includes all of that.) You'll probably want to add tools/ and platform-tools/ to your PATH