[Android Software/Hacking General [Developers Only]] skiubek:
Hallo!

Is there an easy way to run tvheadend on android not by executing the stuff from:

http://www.holik.at/index.php?PHPSESSID=pnhgjfva

I stuck at running script make-standalone-toolchain.sh. Few days and no steps forward. As far as I know there is no need to install Android SDK on Windows machine. I'm working thru putty.exe on my Amlogic M3 Android HD16T set to box.

I've already unpacked Android NDK to usbstick connected to my STB and problems with "Permission denied" occured. Realized that i have to run the script by adding sh at the beginning of the line:

#!/bin/bash (or maby in my case probably #!/system/bin/sh)

sh $ANDROID_NDK/build/tools/make-standalone-toolchain.sh \

--system=linux-x86_64 \

--toolchain=arm-linux-androideabi-4.4.3 \

--platform=android-14 \

--install-dir=$ANDROID_NDK_TOOLCHAIN_ROOT

and then Android return these problems:

root@android:/mnt/sda1/android/workingdir # su

root@android:/mnt/sda1/Android/WORKINGDIR # #!/bin/bash

root@android:/mnt/sda1/Android/WORKINGDIR # export ANDROID_NDK=android-ndk-r8e

root@android:/mnt/sda1/Android/WORKINGDIR # export ANDROID_NDK_TOOLCHAIN_ROOT=android-toolchain-14

root@android:/mnt/sda1/Android/WORKINGDIR # sh $ANDROID_NDK/build/tools/make-standalone-toolchain.sh \ <

> --system=linux-x86_64 \

> --toolchain=arm-linux-androideabi-4.4.3 \

> --platform=android-14 \

> --install-dir=$ANDROID_NDK_TOOLCHAIN_ROOT (and when pushed Enter key:

expr: syntax error

expr: syntax error

android-ndk-r8e/build/tools/make-standalone-toolchain.sh: cannot open name: No s uch file or directory

android-ndk-r8e/build/tools/make-standalone-toolchain.sh: OPTIONS_abstract_Speci fy: not found

expr: syntax error

expr: syntax error

android-ndk-r8e/build/tools/make-standalone-toolchain.sh: cannot open ver: No su ch file or directory

android-ndk-r8e/build/tools/make-standalone-toolchain.sh: OPTIONS_abstract_Speci fy: not found

expr: syntax error

expr: syntax error

android-ndk-r8e/build/tools/make-standalone-toolchain.sh: cannot open name: No s uch file or directory

android-ndk-r8e/build/tools/make-standalone-toolchain.sh: OPTIONS_abstract_Speci fy: not found

expr: syntax error

expr: syntax error

android-ndk-r8e/build/tools/make-standalone-toolchain.sh: cannot open path: No s uch file or directory

android-ndk-r8e/build/tools/make-standalone-toolchain.sh: cannot open path: No s uch file or directory

android-ndk-r8e/build/tools/make-standalone-toolchain.sh: OPTIONS_default_androi d-ndk-r8e=: not found

expr: syntax error

expr: syntax error

android-ndk-r8e/build/tools/make-standalone-toolchain.sh: cannot open name: No s uch file or directory

android-ndk-r8e/build/tools/make-standalone-toolchain.sh: OPTIONS_abstract_Speci fy: not found

android-ndk-r8e/build/tools/make-standalone-toolchain.sh: OPTIONS_default_linux- armv7l=: not found

expr: syntax error

expr: syntax error

android-ndk-r8e/build/tools/make-standalone-toolchain.sh: cannot open path: No s uch file or directory

android-ndk-r8e/build/tools/make-standalone-toolchain.sh: cannot open path: No s uch file or directory

android-ndk-r8e/build/tools/make-standalone-toolchain.sh: OPTIONS_default_/tmp/n dk-root=: not found

expr: syntax error

expr: syntax error

android-ndk-r8e/build/tools/make-standalone-toolchain.sh: cannot open path: No s uch file or directory

android-ndk-r8e/build/tools/make-standalone-toolchain.sh: no closing quote

expr: syntax error

expr: syntax error

android-ndk-r8e/build/tools/make-standalone-toolchain.sh: cannot open name: No s uch file or directory

android-ndk-r8e/build/tools/make-standalone-toolchain.sh: OPTIONS_abstract_Speci fy: not found

android-ndk-r8e/build/tools/make-standalone-toolchain.sh: OPTIONS_default_androi d-3=: not found

expr: syntax error

expr: syntax error

expr: syntax error

expr: syntax error

expr: syntax error

ERROR: Unknown option '--system=linux-x86_64'. Use --help for list of valid valu es.

1|root@android:/mnt/sda1/Android/WORKINGDIR #

Fighting with these costs me to much time. Maby you guys can give me little advice. Or just point me what am I doing wrong...:(

I just want to run tvheadend server AND client for XBMC on one machine - HD16T box. Raspberry Pi owners can already use that thing.

Is there a simple way to do that? Maby using thveadend Mikrohard's scripts for XBMC? By the way - how to use/configure this script to run as a tvheadend server? Do I have to cross-compile tvheadend for android before or it is standalone working server using only XBMC liblaries?