Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
How to Cross-Compile rtmpdump for Android using Mac OSHi 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 ##################################### Code:
$NDK/build/tools/make-standalone-toolchain.sh --platform=android-14 --install-dir=$TOOLCHAIN_ROOT Code:
git clone git@github.com:S74ck3r/rtmpdump.git Code:
cd rtmpdump Code:
make SYS=android CROSS_COMPILE=arm-linux-androideabi- INC="-I$TOOLCHAIN_ROOT/sysroot/include" CRYPTO=POLARSSL Code:
http://pastebin.com/F5PFbcxw Thanks! |
Tags: android, cross compile, librtmpso, rtmpdump |
Thread Tools | |
Display Modes | |
|
|