[FFmpeg-user] How to build ffmpeg statically with librtmp support

Han Jiang oglops at gmail.com
Mon Aug 18 04:26:02 CEST 2014

first i compiled rtmpdump as follows

git clone git://git.ffmpeg.org/rtmpdump
cd rtmpdump
make SYS=posix SHARED=
make install prefix=/usr/tmp/tmp/ffmpeg-static/target  SHARED=

i checked in the target dir , the .a and .pc files are there.

then in ffmpeg folder i run configure as

./configure --enable-librtmp  --prefix=/usr/tmp/tmp/ffmpeg-static/target
--extra-cflags="-I/usr/tmp/tmp/ffmpeg-static/target/include -static"
--extra-ldflags="-L/usr/tmp/tmp/ffmpeg-static/target/lib -lm -static"
--extra-version=static --disable-debug --disable-shared --enable-static

last few lines in config.log are

-I/usr/tmp/tmp/ffmpeg-static/target/include -static --static -std=c99
-fomit-frame-pointer -pthread -I/usr/tmp/tmp/ffmpeg-static/target/include
-Wl,-z,relro -L/usr/tmp/tmp/ffmpeg-static/target/lib -c -o
/var/tmp/ffconf.x1d7jHtY.o /var/tmp/ffconf.QmzlWFCG.c
gcc -L/usr/tmp/tmp/ffmpeg-static/target/lib
-L/usr/tmp/tmp/ffmpeg-static/target/lib -lm -static -Wl,--as-needed
-I/usr/tmp/tmp/ffmpeg-static/target/include -Wl,-z,relro
-L/usr/tmp/tmp/ffmpeg-static/target/lib -o /var/tmp/ffconf.9ub8uUUT
/var/tmp/ffconf.x1d7jHtY.o -lrtmp -lssl -lcrypto -ldl -lz -lm -lbz2 -lz
-pthread -lrt
/usr/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
ERROR: librtmp not found

On Mon, Aug 18, 2014 at 7:32 AM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> Han Jiang <oglops <at> gmail.com> writes:
> > https://github.com/oglops/ffmpeg-static
> Unfortunately, build scripts are not supported here.
> Please post your actual configure line (no variables,
> minimal configure line that allows to reproduce the
> issue preferred) and a repeated call to make including
> its output.
> If you miss a feature in our configure script, please
> tell us.
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user

More information about the ffmpeg-user mailing list