[FFmpeg-user] Static compile with librtmp

Young Kim shadowing71 at gmail.com
Thu Nov 8 21:58:55 CET 2012


On Thursday, November 8, 2012 at 12:51 PM, Young Kim wrote:
> On Thursday, November 8, 2012 at 12:02 PM, Carl Eugen Hoyos wrote:
> > Young Kim <shadowing71 <at> gmail.com (http://gmail.com)> writes:
> > 
> > > On Thursday, November 8, 2012 at 11:21 AM, Carl Eugen Hoyos wrote:
> > > > Young Kim <shadowing71 <at> gmail.com (http://gmail.com) (http://gmail.com)> writes:
> > > > 
> > > > > /home/ykim/encodebuild/lib/librtmp.so: undefined reference to `dlsym'
> > > > 
> > > > What is the output of:
> > > > $ pkg-config --libs librtmp
> > > > ?
> > > > 
> > > 
> > > 
> > 
> > 
> > > this: -L/home/ykim/encodebuild/lib -lrtmp -lz -lssl -lcrypto
> > 
> > Could be broken, otoh, it looks similar here, but does
> > $ ldd /home/ykim/encodebuild/lib/librtmp.so
> > show libdl.so ?
> > 
> linux-vdso.so.1 =>  (0x00007fff969ff000)
> libc.so.6 => /lib64/libc.so.6 (0x00007ff03eb0d000)
> /lib64/ld-linux-x86-64.so.2 (0x0000003b43e00000)
> 
> If ld-linux-x86-64.so.2 is libdl.so, then it seems like it is. 
> > Since you already have to use --extra-libs, just add -ldl
> > 
> That seems to do the trick. I'm a bit baffled though because I did add it before, but configure would error on me. Guess it worked this time for some reason o_O
> 
> Thanks,
> Young
> > 
> 
> 
Actually, I think it still compiled incorrectly. I get this when I run anything with a ramp url: 

$ encodebuild/bin/ffmpeg -re -i video.mp4 rtmp://localhost/oflaDemo/test
encodebuild/bin/ffmpeg: error while loading shared libraries: librtmp.so.0: cannot open shared object file: No such file or directory




More information about the ffmpeg-user mailing list