stk-code_catmod/android
2016-02-27 00:23:55 +01:00
..
assets/media Shaders and data files for the irrlicht example 2016-02-25 16:44:55 +01:00
jni [android] hack to control the kart with the accelerometer (to be moved in a proper place - just for debugging purpose right now) 2016-02-27 00:23:55 +01:00
res Add android build files 2016-02-24 20:41:21 +01:00
AndroidManifest.xml Add src symlink, add build system to build the rest of stk, freetype, ifaddrs, etc… Does not compile yet 2016-02-25 16:47:48 +01:00
build.xml Add android build files 2016-02-24 20:41:21 +01:00
local.properties Add android build files 2016-02-24 20:41:21 +01:00
Makefile [android] stop makefile target to kill a running stk 2016-02-27 00:19:47 +01:00
proguard.cfg Add android build files 2016-02-24 20:41:21 +01:00
project.properties Add android build files 2016-02-24 20:41:21 +01:00
readme.android [android] fix typo in the readme 2016-02-27 00:20:37 +01:00
stk-assets_svn.patch [android] Add the patch used to have a lighter dataset 2016-02-25 23:16:44 +01:00

First, download and extract the ndk android-ndk-r10e to this folder (i.e. android/android-ndk-r10e/).

The android sdk must be installed in /opt.

ant is also needed.

[not needed anymore] Download a suitable jpeglib (done automatically by the Makefile)
================================================================
> git clone https://github.com/folecr/jpeg8d jni/jpeglib

Build an apk
============
> make build apk

Install and run
===============
> make install run

Install data set
================
I recommend to use a lighter data set, there is a patch in the android/ folder that can be applied to the
SVN version (keep a single track, a single kart and remove most materials).
A larger one may work too, but it will be way slower to load, and is likely to be killed by your device (but
maybe it works, I did not test).

> adb shell mkdir /sdcard/stk/
> adb push data /sdcard/stk/data/ # you have to be in the root of your stk-code
> adb push stk-assets /sdcard/stk/data/stk-assets # you have to be in the parent of stk-assets, but you guessed