On Thu, 29 Dec 2011 11:04:54 -0600
Bruce Dubbs <[email protected]> wrote:

> Andrew Benton wrote:
> > On Wed, 28 Dec 2011 20:35:30 -0700 (MST)
> > [email protected] wrote:
> > 
> > 
> >> -<screen><userinput>./configure --prefix=/usr 
> >> --docdir=/usr/share/doc/xine-lib-&xine-lib-version; &amp;&amp;
> >> +<screen><userinput>./configure --prefix=/usr          \
> >> +            --with-external-ffmpeg \
> >> +            --docdir=/usr/share/doc/xine-lib-&xine-lib-version; &amp;&amp;
> >> +
> > 
> >> +    <para><option>--with-external-ffmpeg</option>:
> >> +    The internal version of <application>ffmpeg</application> fails.
> >> +    This switch forces the use of the external version.
> >> +    </para>
> > 
> > xine-lib-1.1.20 works fine for me with:
> > ./configure --prefix=/usr --with-external-a52dec --with-external-libmad
> > 
> > Why is ffmpeg a required dependency?
> 
> It was consistently failing for me with the internal ffmpeg.  Something 
> about -Werror=implicit-function-declaration.  It wasn't in the 
> configure, but in the make.  Now it builds for me without the 
> --with-external-ffmpeg switch, but the includes from ffmpeg are still 
> installed.

Looking at my build log, even though I didn't specify
--with-external-ffmpeg configure detected the installed ffmpeg and used
it:
checking for FFMPEG... yes
checking for FFMPEG_UTIL... yes
checking for FFMPEG_POSTPROC... yes
checking ffmpeg/avutil.h usability... no
checking ffmpeg/avutil.h presence... no
checking for ffmpeg/avutil.h... no
checking libavutil/avutil.h usability... yes
checking libavutil/avutil.h presence... yes
checking for libavutil/avutil.h... yes
using external ffmpeg

I don't think that we need to use the --with-external-ffmpeg option as
it seems to be the default if ffmpeg is installed.
If I try to compile xine-lib-1.1.20 --with-external-ffmpeg=no configure
gives a warning like this:

*********************************************************************
xine-lib is configured to use internal ffmpeg.

This copy of ffmpeg is old. You are strongly advised to install a
newer version (including development files) and to reconfigure
xine-lib to use it.
*********************************************************************

And the build fails like this:

.deps/xineplug_decode_ff_la-ff_audio_decoder.Tpo -c ff_audio_decoder.c  -fPIC 
-DPIC -o .libs/xineplug_decode_ff_la-ff_audio_decoder.o
ff_audio_decoder.c: In function 'ff_audio_decode':
ff_audio_decoder.c:362:7: error: implicit declaration of function 
'av_parser_parse2' [-Werror=implicit-function-declaration]
ff_audio_decoder.c:362:7: warning: nested extern declaration of 
'av_parser_parse2' [-Wnested-externs]
cc1: some warnings being treated as errors

make[4]: *** [xineplug_decode_ff_la-ff_audio_decoder.lo] Error 1
make[4]: Leaving directory `/home/andy/xine-lib-1.1.20/src/combined/ffmpeg'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/andy/xine-lib-1.1.20/src/combined/ffmpeg'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/andy/xine-lib-1.1.20/src/combined'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/andy/xine-lib-1.1.20/src'
make: *** [all-recursive] Error 1
andy@eccles:~/xine-lib-1.1.20$ 

These errors are to do with the new ffmpeg api. av_parser_parse2 has
been removed from ffmpeg. It must be picking up the headers in /usr
before the internal headers. 

I'll do a test build tomorrow on a system without ffmpeg installed and see what 
happens.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to