]> rtime.felk.cvut.cz Git - orte.git/blob - android_compile
JORTE: ignore 'int-to-pointer' and 'pointer-to-int' compiler warnings
[orte.git] / android_compile
1 To compile for Android you need:
2 Android SDK, Android NDK, Java NDK, ant, make >= 3.81
3
4 The Android SDK+NDK could be obtained from developer.android.com site.
5
6 After you download and extract the files to some convenient location, there are several steps needed to compile the app:
7
8 1)      add to your $PATH following locations: <ndk-folder>:<sdk-folder>/tools
9 2)      go to <sdk-folder>/tools and execute "android"
10 3)      download "SDK Platform" for "API 15" - Android 4.0.3
11 4)      go to orte/libaorte and execute "android update project -p .", then go to orte/Robot_Demo and do the same
12 5)      go to orte/libaorte and execute "ndk-build" - this builds native code
13 6)      go to orte/Robot_Demo and execute "ant debug" - this will prepare Android .apk file signed with automatically generated debug key
14 7)      the generated .apk is located in orte/Robot_Demo/bin/RoboDruid-debug.apk