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

2014-08-18 Thread Han Jiang
i found a working solution . but don't understand why it is like this, can someone explain it? first i compiled openssl cd build/openssl* ./config --prefix=/usr/tmp/tmp/ffmpeg-static/target no-shared make make install then librtmp cd build/rtmp* # patch rtmpdump makefile to include -ldl sed

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

2014-08-18 Thread Han Jiang
if i don't add --extra-libs=-ldl, it errors out saying ld can not find ldl no i don't have a static openssl installed in your system, i think the installed one is dynamic. if i don't static compile it , it errors out with error message like ld can not find -lssl On Tue, Aug 19, 2014 at 1:15

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

2014-08-17 Thread Moritz Barsnick
On Sun, Aug 17, 2014 at 14:27:27 +0800, Han Jiang wrote: libavformat/libavformat.a(librtmp.o): In function `rtmp_read_seek': librtmp.c:(.text+0x30): undefined reference to `RTMP_SendSeek' Does your linking command line which is throughing this error even have -lrtmp or librtmp.a in it? Moritz

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

2014-08-17 Thread Han Jiang
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

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

2014-08-17 Thread Han Jiang
if i remove the -static from the configure command line , by using ./configure --enable-librtmp --prefix=/usr/tmp/tmp/ffmpeg- static/target --extra-cflags=-I/usr/tmp/tmp/ffmpeg-static/target/include --extra-ldflags=-L/usr/tmp/tmp/ffmpeg-static/target/lib -lm --extra-version=static --disable-debug