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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-27-2017, 02:50 AM
bcop bcop is offline
Junior Member
 
Join Date: Sep 2017
Posts: 1
bcop is on a distinguished road
Default

Issue compiling rtmpdump (librtmp) for ARM processor


Hi,

I am trying to compile librtmp so I can build FFmpeg with RTMP support for ARM processor.

I already have the toolchain, and solo build of FFmpeg was also successful, and testing from inside the ARM processor was success as well.

My understanding:
Code:
- Ffmpeg
|__ Librtmp
|___Openssl
|___zlib
This hierarchy is required to build FFmepg.

So far I have built openssl for ARM, and zlib for ARM, and, I can see it is located in right ARM output folder.

Prerequisites:

Code:
export LD_LIBRARY_PATH=/opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/lib/

export CCPREFIX="/opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/bin/arm-unknown-linux-uclibcgnueabi-"

export CFLAGS="-I/opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/include"

export LDFLAGS="-L/opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/lib/"
1- Steps to build zlib:
Code:
CC=arm-linux-gcc
./configure --prefix=/opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr
make
make install

2- Steps to build openssl:


Code:
export cross=arm-linux-
./Configure dist --prefix=/opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr
make CC="${cross}gcc" AR="${cross}ar r" RANLIB="${cross}ranlib"
make install

3- Steps to build librtmp:


Code:
make CROSS_COMPILE=arm-linux- INC=-I/opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/include LIB=-L/opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/lib
above 1,2 steps are successful, with 3rd, I get this:

Code:
make CROSS_COMPILE=arm-linux- INC=-I/opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/include LIB=-L/opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/lib

make[1]: Entering directory '/home/user/Downloads/ip_code/rtmpdump/librtmp'

arm-linux-gcc -shared -Wl,-soname,librtmp.so.1  -o librtmp.so.1 rtmp.o log.o amf.o hashswf.o parseurl.o  -lssl -lcrypto -lz

/opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/bin/../lib/gcc/arm-unknown-linux-uclibcgnueabi/4.4.0/../../../../arm-unknown-linux-uclibcgnueabi/bin/ld: cannot find -lssl

/opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/bin/../lib/gcc/arm-unknown-linux-uclibcgnueabi/4.4.0/../../../../arm-unknown-linux-uclibcgnueabi/bin/ld: cannot find -lcrypto

/opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/bin/../lib/gcc/arm-unknown-linux-uclibcgnueabi/4.4.0/../../../../arm-unknown-linux-uclibcgnueabi/bin/ld: cannot find -lz

collect2: ld returned 1 exit status

Makefile:92: recipe for target 'librtmp.so.1' failed

make[1]: *** [librtmp.so.1] Error 1

make[1]: Leaving directory '/home/user/Downloads/ip_code/rtmpdump/librtmp'

Makefile:76: recipe for target 'librtmp/librtmp.a' failed

make: *** [librtmp/librtmp.a] Error 2
but in the output folder I can see the right files are there:

Code:
[user@localhost rtmpdump]$ cd /opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/lib

[user@localhost lib]$ ls

bin                  libavcodec.a      libgmp.so.10.0.2  libz.so

certs                libavdevice.a     libiberty.a       libz.so.1

engines              libavfilter.a     libmpfr.la        libz.so.1.2.11

gcc                  libavformat.a     libmpfr.so        man

include              libavutil.a       libmpfr.so.4      misc

ldscripts            libcrypto.a       libmpfr.so.4.0.1  openssl.cnf

lib                  libfakeroot-0.so  libpostproc.a     pkgconfig

libaacplus.a         libfakeroot.la    libssl.a          private

libaacplus.la        libfakeroot.so    libswresample.a   share

libaacplus.so        libgmp.la         libswscale.a

libaacplus.so.2      libgmp.so         libx264.a

libaacplus.so.2.0.2  libgmp.so.10      libz.a

[user@localhost lib]$
Any idea how to compile?

Thanks
Reply With Quote
 
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 10:28 AM.


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