]>
Commit | Line | Data |
---|---|---|
0832e7d6 UH |
1 | ------------------------------------------------------------------------------- |
2 | README | |
3 | ------------------------------------------------------------------------------- | |
4 | ||
5 | This is a small script for cross-compiling sigrok and its dependencies | |
6 | for Android systems. | |
7 | ||
8 | ||
9 | Status | |
10 | ------ | |
11 | ||
6e15e874 | 12 | Working. |
0832e7d6 UH |
13 | |
14 | ||
15 | Requirements | |
16 | ------------ | |
17 | ||
18 | - bash | |
f6b4e626 | 19 | - gawk |
0832e7d6 UH |
20 | - gcc |
21 | - make | |
22 | - git | |
23 | - pkg-config (>= 0.22) | |
f6b4e626 UH |
24 | - gettext |
25 | - ant | |
f3422e31 | 26 | - Android NDK (tested: r10e) |
a3f19f55 | 27 | - Android cross-compile toolchain (tested: arm-linux-androideabi-4.9) |
124c07b9 | 28 | - Android SDK (tested: r24.4.1) |
f6b4e626 UH |
29 | - On 64bit hosts, you also need some i386 packages. E.g. on Debian/Ubuntu: |
30 | $ dpkg --add-architecture i386 | |
31 | $ apt-get update | |
32 | $ apt-get install libstdc++6:i386 zlib1g:i386 | |
0832e7d6 UH |
33 | |
34 | ||
3bdccc55 UH |
35 | Toolchain setup |
36 | --------------- | |
37 | ||
38 | You can use the script to install and setup the Android NDK, | |
39 | SDK, and the respective standalone toolchain: | |
40 | ||
41 | $ ./sigrok-cross-android prepare | |
42 | ||
43 | This will install everything into $HOME/android. | |
44 | ||
45 | ||
0832e7d6 UH |
46 | Building |
47 | -------- | |
48 | ||
49 | $ ./sigrok-cross-android | |
50 | ||
51 | Per default it expects the Android cross toolchain in: | |
52 | ||
53 | $HOME/android/android-arm-toolchain | |
54 | ||
55 | Per default it will install the cross-compiled packages in: | |
56 | ||
57 | $HOME/sr_android | |
58 | ||
59 | Please edit the script if you want to change any settings. | |
60 |