[FFmpeg-devel] [PATCH] fix build with --enable-liba52 --enable-shared

Aurelien Jacobs aurel
Tue Sep 2 02:10:19 CEST 2008


On Tue, 2 Sep 2008 00:29:58 +0200
Dominik 'Rathann' Mierzejewski <dominik at rangers.eu.org> wrote:

> Hi.
> FFmpeg doesn't build in this configuration after ac3/eac3 split.
> 
> Steps to reproduce:
> ./configure --enable-liba52 --enable-shared --enable-gpl && make
> Result:
> ...
> /home/rathann/cvs/ffmpeg/libavcodec/libavcodec.so: undefined reference to `eac3_decoder'
> collect2: ld returned 1 exit status
> make: *** [ffmpeg_g] Error 1
> 
> One-line fix attached.
> 
> [...]
> 
> --- configure	(revision 15150)
> +++ configure	(working copy)
> @@ -848,6 +848,7 @@
>  # decoders / encoders
>  ac3_decoder_deps="gpl !liba52"
>  dxa_decoder_deps="zlib"
> +eac3_decoder_deps="gpl !liba52"

This looks wrong. liba52 don't provide eac3 decoding, so it
really shouldn't disable internal eac3 decoder.
I suppose the attached patch will also fix your issue,
and is needed anyway in case user do
  --enable-gpl --disable-decoder=ac3 --enable-decoder=eac3

Aurel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eac3_makefile.diff
Type: text/x-diff
Size: 594 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080902/76ad7f59/attachment.diff>



More information about the ffmpeg-devel mailing list