[Libav-user] Issue trying to build FFmpeg for ARM with librtmp support

black copper blackcopper1 at gmail.com
Wed Sep 27 10:01:56 EEST 2017


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:

-          Ffmpeg

o   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.


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-

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:


./configure --prefix=/opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr


Make install

2-      Steps to build openssl:

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:

make CROSS_COMPILE=arm-linux-

above 1,2 steps are successful, with 3rd, I get this:

make CROSS_COMPILE=arm-linux-

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

cannot find -lssl

cannot find -lcrypto

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:

[user at localhost rtmpdump]$ cd /opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/lib

[user at 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 at localhost lib]$

Any idea how to compile?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20170927/ee7e6d0f/attachment.html>

More information about the Libav-user mailing list