Hi all,
Does anyone have any script on how to cross-compile rtmpdump for Android using Mac OS Snow Leopard?
Steps followed:
1. Set Environment on my .bash_profile (when this works I'll use a script instead):
Code:
#####################################
## Android SDK & NDK ENVIRONMENT ##
#####################################
export NDK=${HOME}/Android/android-ndk
export SDK=${HOME}/Android/android-sdk
export TOOLCHAIN_ROOT=${HOME}/Android/android-14-toolchain
export PATH=$PATH:$NDK:$SDK/tools:$SDK/platform-tools:$TOOLCHAIN_ROOT/bin
export CC=${CROSS_COMPILE}gcc
export CXX=${CROSS_COMPILE}g++
export NM=${CROSS_COMPILE}nm
export STRIP=${CROSS_COMPILE}strip
export RANLIB=${CROSS_COMPILE}ranlib
export AR=${CROSS_COMPILE}ar
export AS=${CROSS_COMPILE}as
export LD=${CROSS_COMPILE}ld
export SYSROOT=$NDK/platforms/android-14/arch-arm
export PATH=$PATH:$SYSROOT
#####################################
2. I've created custom toolchain (android-14-toolchain) using NDK script and installed polarssl into /sysroot/ inside toolchain.
Code:
$NDK/build/tools/make-standalone-toolchain.sh --platform=android-14 --install-dir=$TOOLCHAIN_ROOT
3.
Code:
git clone git@github.com:S74ck3r/rtmpdump.git
4. ran this command inside rtmpdump folder:
Code:
make SYS=android CROSS_COMPILE=arm-linux-androideabi- INC="-I$TOOLCHAIN_ROOT/sysroot/include" CRYPTO=POLARSSL
5. Output:
Code:
http://pastebin.com/F5PFbcxw
What is missing?
Thanks!