summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-08-05 12:15:30 +0000
committerThomas Martitz <kugel@rockbox.org>2010-08-05 12:15:30 +0000
commite8542efdb102d516f02620386e496af5be74d8b1 (patch)
tree19241c9f5f7e92326ee589e1c8825ca13a97c7f8
parent3f8e7fc26fdecde65fb78de84e4df31df8c0e750 (diff)
downloadrockbox-e8542efdb102d516f02620386e496af5be74d8b1.tar.gz
rockbox-e8542efdb102d516f02620386e496af5be74d8b1.zip
Update README a bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27718 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--android/README29
1 files changed, 19 insertions, 10 deletions
diff --git a/android/README b/android/README
index e41bfa6c0c..c22ab604d1 100644
--- a/android/README
+++ b/android/README
@@ -1,18 +1,25 @@
1This folder contains the java parts needed to build an Rockbox as an 1This folder contains the java parts needed to build an Rockbox as an
2application for android. 2application for android.
3 3
4* Build instructions 4* Prerequisites
5
6Download and install the Android SDK[1] and NDK[2]. After you extracted the SDK, you need to run <sdk-dir>/tools/android in order to install the actual platform sdk from the available packages tab (SDK Platform Android 1.5 or above should work). In the virtual devices tab you can also setup a emulator.
5 7
6Until there's a script which does all the work the procedure is documented here.
7 8
8First, make sure you have the ANDROID_NDK_PATH environment variable set up, 9Then, make sure you have the ANDROID_NDK_PATH (pointing to the NDK's root directory) environment variable set up,
9otherwise configure will fail to find the compiler. 10otherwise configure will fail to find the compiler.
10 11
12
13* Build instructions
14
15Until there's a script which does all the work the procedure is documented here.
16
11Use this as your build folder, using '../tools/configure' etc. 17Use this as your build folder, using '../tools/configure' etc.
12 $ ../tools/configure 18 $ ../tools/configure
13 $ make 19 $ make
14 20
15After the build finished, you need to copy librockbox.so to libs/armeabi/. 21After the build finished, you need to copy librockbox.so to libs/armeabi/ (create that dir if it doesn't exit)
22 $ mkdir -p libs/armeabi
16 $ cp librockbox.so libs/armeabi 23 $ cp librockbox.so libs/armeabi
17 24
18For the other files (codecs, themes), you execute 'make zip'. Then you copy the 25For the other files (codecs, themes), you execute 'make zip'. Then you copy the
@@ -20,15 +27,17 @@ zip to libs/armeabi, using the name libmisc.so. This is needed, since there's no
20way to bundle stuff into apk's and have access to them from native code other 27way to bundle stuff into apk's and have access to them from native code other
21than pretending it was a library. 28than pretending it was a library.
22 $ make zip 29 $ make zip
23 $ cp rockbox.zip lib/armeabi/libmisc.so 30 $ cp rockbox.zip libs/armeabi/libmisc.so
24 31
25rockbox.zip..err, libmisc.so will be unpacked at runtime. 32rockbox.zip..err, libmisc.so will be unpacked at runtime.
26 33
27To finish, you can follow this guide [1], or use eclipse. Simply install eclipse 34To finish, you can follow this guide [3], or use eclipse. Simply install eclipse
28and the android plugins, then import this folder as a new Android project and run it. 35and the android plugins, then import this folder as a new Android project and run it.
29See [2] for a guide on how to set up eclipse for android development. 36See [4] for a guide on how to set up eclipse for android development.
37
30 38
31 39
32 40[1]: http://developer.android.com/sdk/index.html
33[1]: http://asantoso.wordpress.com/2009/09/15/how-to-build-android-application-package-apk-from-the-command-line-using-the-sdk-tools-continuously-integrated-using-cruisecontrol/ 41[2]: http://developer.android.com/sdk/ndk/index.html
34[2]: http://developer.android.com/sdk/installing.html 42[3]: http://asantoso.wordpress.com/2009/09/15/how-to-build-android-application-package-apk-from-the-command-line-using-the-sdk-tools-continuously-integrated-using-cruisecontrol/
43[4]: http://developer.android.com/sdk/installing.html