diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-08-05 12:15:30 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-08-05 12:15:30 +0000 |
commit | e8542efdb102d516f02620386e496af5be74d8b1 (patch) | |
tree | 19241c9f5f7e92326ee589e1c8825ca13a97c7f8 | |
parent | 3f8e7fc26fdecde65fb78de84e4df31df8c0e750 (diff) | |
download | rockbox-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/README | 29 |
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 @@ | |||
1 | This folder contains the java parts needed to build an Rockbox as an | 1 | This folder contains the java parts needed to build an Rockbox as an |
2 | application for android. | 2 | application for android. |
3 | 3 | ||
4 | * Build instructions | 4 | * Prerequisites |
5 | |||
6 | Download 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 | ||
6 | Until there's a script which does all the work the procedure is documented here. | ||
7 | 8 | ||
8 | First, make sure you have the ANDROID_NDK_PATH environment variable set up, | 9 | Then, make sure you have the ANDROID_NDK_PATH (pointing to the NDK's root directory) environment variable set up, |
9 | otherwise configure will fail to find the compiler. | 10 | otherwise configure will fail to find the compiler. |
10 | 11 | ||
12 | |||
13 | * Build instructions | ||
14 | |||
15 | Until there's a script which does all the work the procedure is documented here. | ||
16 | |||
11 | Use this as your build folder, using '../tools/configure' etc. | 17 | Use this as your build folder, using '../tools/configure' etc. |
12 | $ ../tools/configure | 18 | $ ../tools/configure |
13 | $ make | 19 | $ make |
14 | 20 | ||
15 | After the build finished, you need to copy librockbox.so to libs/armeabi/. | 21 | After 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 | ||
18 | For the other files (codecs, themes), you execute 'make zip'. Then you copy the | 25 | For 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 | |||
20 | way to bundle stuff into apk's and have access to them from native code other | 27 | way to bundle stuff into apk's and have access to them from native code other |
21 | than pretending it was a library. | 28 | than 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 | ||
25 | rockbox.zip..err, libmisc.so will be unpacked at runtime. | 32 | rockbox.zip..err, libmisc.so will be unpacked at runtime. |
26 | 33 | ||
27 | To finish, you can follow this guide [1], or use eclipse. Simply install eclipse | 34 | To finish, you can follow this guide [3], or use eclipse. Simply install eclipse |
28 | and the android plugins, then import this folder as a new Android project and run it. | 35 | and the android plugins, then import this folder as a new Android project and run it. |
29 | See [2] for a guide on how to set up eclipse for android development. | 36 | See [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 | ||