Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

Rtmpdump build for Android

(http://stream-recorder.com/forum/showthread.php?t=13466)

CyKiller 11-09-2012 07:35 AM

Re: Rtmpdump build for Android


 
Quote:

Originally Posted by S74ck3r (Post 56238)
New android and windows binaries available updated to PolarSSL 1.2.0.

Any chance you can compile the librtmp.so for android please? Or relate on what lib files are needed for openssl, I get an error when compiling stating that the header file ssl.h is not in the hmac file. It is there I checked a million times and had no difference no matter what I tried.

Thanks.

S74ck3r 11-13-2012 03:53 AM

Re: Rtmpdump build for Android


 
no problem, new version uploaded.

CyKiller 11-14-2012 08:09 AM

Re: Rtmpdump build for Android


 
Much appreciated, I downloaded and noticed it was compiled for linux. I was wondering if you can cross compile it for android using

$ make CROSS_COMPILE=arm-none-linux- INC= I/my/cross/includes

with the extension librtmp.so which can be used under android. A tutorial would also be great, I been trying to figure this out for days now. Thanks a lot for the updated file it was much appreciated!!

S74ck3r 11-14-2012 10:27 AM

Re: Rtmpdump build for Android


 
Have you actually tried the files?

They are built with the android ndk using CC=arm-linux-androideabi

CyKiller 11-14-2012 07:27 PM

Re: Rtmpdump build for Android


 
Sorry for the soft explaination, it is for XBMC and the scripts read librtmp.so - I will give it a try but I am sure it will not recognize it. I will try it out and report back.

flinki 11-20-2012 12:51 PM

Re: Rtmpdump build for Android


 
Hey maybe could someone compile flvstreamer for android:
http://download.savannah.gnu.org/rel...reamer/source/
Thanks in advance

S74ck3r 11-21-2012 02:07 AM

Re: Rtmpdump build for Android


 
I haven't tried it out because I'm at work but this might be ok
https://github.com/downloads/S74ck3r....1c-android.7z

It's built from this svn://svn.sv.gnu.org/flvstreamer.

flinki 11-22-2012 11:42 AM

Re: Rtmpdump build for Android


 
Thanks !!

I have problems compiling it on my own... Maybe you can help me :
I created an standalone toolchain for android using androidNDK toolkit.
I crosscompiled polarssl using this command : make CC=arm-linux-androideabi-gcc APPS=

Now i have the polarssl library . I copied it to include path of the android standalone toolchain.
Then i modified the 2 makefiles of rtmpdump so that I use the arm-linux-androideabi-gcc compiler. But when i try to compile it somehow I get :


$ make all SHARED= SYS=android CRYPTO=POLARSSL LIBZ="-lz -static"
make[1]: Entering directory `/home/Florian/rtmpdump/librtmp'
/home/Florian/arm-linux-androideabi-4.6/arm-linux-androideabi-4.6/bin/arm-linux-
androideabi-gcc.exe -Wall -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_POLARSSL -O2
-c -o rtmp.o rtmp.c
In file included from rtmp.c:33:0:
rtmp_sys.h:64:30: fatal error: polarssl/version.h: No such file or directory
compilation terminated.
<builtin>: recipe for target `rtmp.o' failed
make[1]: *** [rtmp.o] Error 1
make[1]: Leaving directory `/home/Florian/rtmpdump/librtmp'
Makefile:91: recipe for target `librtmp/librtmp.a' failed
make: *** [librtmp/librtmp.a] Error 2

Seems that the compiler can't find the polarssl library... I tried to figure out where I have to copy the libpolarssl.a file but up to now I didn't managed to...

S74ck3r 11-22-2012 01:30 PM

Re: Rtmpdump build for Android


 
After you compile polarssl run make install to copy the library and headers to the right place.

For my setup the command looks like this -

make install DESTDIR=/c/tmp/android-toolchain/sysroot

Then when you build rtmpdump you need to include something like;

INC="-I/c/tmp/android-toolchain/sysroot/include"

I'm getting round to putting together a step by step, will post it here probably on the weekend.

(edit) oh and I didn't include LIBZ='-lz -static' when building for android.

flinki 11-22-2012 06:28 PM

Re: Rtmpdump build for Android


 
Slowly moving foward... Finally found the place where the library has to be... :arm-linux-androideabi-4.6\arm-linux-androideabi-4.6\sysroot\usr\lib

Then i had another ERROR : it seemed , that the andoroid toolchian can't find the libz library. Although it's included in the android toolchain...

Finaly ! Don't know how and why but now it works.

Thanks for your help!


All times are GMT -6. The time now is 08:54 AM.