Skip to content

Commit f64e626

Browse files
committed
Update README.rst
1 parent 9aa58d8 commit f64e626

File tree

1 file changed

+21
-34
lines changed

1 file changed

+21
-34
lines changed

README.rst

Lines changed: 21 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -10,60 +10,47 @@ your application.
1010
- Mailing list: [email protected]
1111

1212
The gnuradio branch contains recipes to build gnuradio applications for android.
13-
You can build Android packages from python
13+
You can even build Android packages from python code generated by grc.
14+
15+
1416
Global overview
1517
---------------
1618

1719
#. Download Android NDK, SDK
1820

19-
* NDK: http://dl.google.com/android/ndk/android-ndk-r8c-linux-x86.tar.bz2
20-
21-
* More details at: http://developer.android.com/tools/sdk/ndk/index.html
22-
23-
* SDK: http://dl.google.com/android/android-sdk_r21.0.1-linux.tgz
24-
25-
* More details at:http://developer.android.com/sdk/index.html
26-
27-
#. Launch "android", and download latest Android platform, here API 14, which would be Android 4.0
21+
#. Launch "android", and download latest Android platform
2822

2923
#. Export some environment variables::
3024

31-
export ANDROIDSDK="/path/to/android/android-sdk-linux_86"
32-
export ANDROIDNDK="/path/to/android/android-ndk-r8c"
33-
export ANDROIDNDKVER=r8c
34-
export ANDROIDAPI=14
25+
export ANDROIDSDK=<path/to/android-sdk>"
26+
export ANDROIDNDK="/path/to/android-ndk>"
27+
export ANDROIDNDKVER=r10 # This version I tested against
28+
export ANDROIDAPI=21 # I tested against
3529

3630
(Of course correct the paths mentioned in ANDROIDSDK and ANDROIDNDK)
3731

3832
#. Clone python-for-android::
3933

40-
git clone git://github.com/kivy/python-for-android
34+
git clone git://github.com/dl1ksv/python-for-android
35+
git checkout gnuradio
4136

42-
#. Build a distribution with OpenSSL module, PIL and Kivy::
37+
#. Build a gnuradio distribution ::
4338

4439
cd python-for-android
45-
./distribute.sh -m "openssl pil kivy"
46-
47-
#. Go to your fresh distribution, build the APK of your application::
40+
./distribute.sh -m "audiostream gnuradio tinyalsa osmosdr kivy" -C -d gnuradio
41+
42+
After some cups of tea you should find a build.py in the directory
43+
dist/gnuradio
4844

49-
cd dist/default
50-
./build.py --package org.test.touchtracer --name touchtracer \
51-
--version 1.0 --dir ~/code/kivy/examples/demo/touchtracer debug
45+
#. Go to gnuradio-examples/scripts directory::
46+
There you'll find some scripts to build some examples.
47+
48+
#. build_dialtone.sh
49+
5250

5351
#. Install the debug apk to your device::
5452

55-
adb install bin/touchtracer-1.0-debug.apk
53+
adb install ../../dist/gnuradio/bin/Dialtone-1.0-debug.apk
5654

5755
#. Enjoy.
5856

59-
60-
Troubleshooting
61-
---------------
62-
63-
if you get the following message:
64-
65-
Android NDK: Host 'awk' tool is outdated. Please define HOST_AWK to point to Gawk or Nawk !
66-
67-
a solution is to remove the "awk" binary in the android ndk distribution
68-
69-
rm $ANDROIDNDK/prebuilt/linux-x86/bin/awk

0 commit comments

Comments
 (0)