[FFmpeg-devel] [PATCH] configure: add check for pkg-config return value
Stefano Sabatini
stefano.sabatini-lala
Sun Mar 6 00:02:37 CET 2011
On date Wednesday 2011-03-02 16:18:40 +0100, Stefano Sabatini encoded:
> On date Monday 2011-02-28 15:01:24 +0100, Stefano Sabatini encoded:
> > On date Monday 2011-02-28 13:16:24 +0000, M?ns Rullg?rd encoded:
> [...]
> > > >> If the patch doesn't actually fix anything it is rejected.
> > > >
> > > > configure --enable-librtmp --enable-libopencv
> > > > Package libssl was not found in the pkg-config search path.
> > > > Perhaps you should add the directory containing `libssl.pc'
> > > > to the PKG_CONFIG_PATH environment variable
> > > > Package 'libssl', required by 'librtmp', not found
> > > > [...]
> > > >
> > > > pkg-config complains that libssl is not installed (indeed it isn't,
> > > > altough it was during librtmp compilation / installation), so -lrtmp
> > > > is not added to the LDFLAGS.
> > > >
> > > > configure succeeds, but then when linking ffmpeg:
> > > >
> > > > /home/stefano/src/sastes-ffmpeg/libavformat/librtmp.c:157: undefined reference to `RTMP_Socket'
> > > >
> > > > Note: libcvaux links against librtmp:
> > > > ldd /usr/lib/libcvaux.so | grep rtmp
> > > > librtmp.so.0 => /home/stefano/lib/librtmp.so.0 (0xb42e1000)
> > > >
> > > > I don't know why configure was able to pass the linking test and
> > > > then linking ffmpeg doesn't work.
> > >
> > > Could it have anything to do with the --as-needed flag?
> >
> > I confirm that removing the --as-needed flag it's able to link ffmpeg.
>
> Ping.
Ping.
--
FFmpeg = Fostering & Fostering Merciless Programmable Erotic Gnome
More information about the ffmpeg-devel
mailing list