Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 04-01-2013, 09:48 AM
redglory redglory is offline
Junior Member
 
Join Date: Mar 2013
Posts: 1
redglory is on a distinguished road
Default

How to Cross-Compile rtmpdump for Android using Mac OS


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:
cd rtmpdump
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!
Reply With Quote
Reply Post New Thread
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 03:09 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons