[Ffmpeg-devel] Build failure if snow is disabled

Guillaume Poirier docmaintainerwannabe
Fri Mar 17 13:10:28 CET 2006


Hi,
Oded Shimon wrote:
> On Fri, Mar 17, 2006 at 12:30:41PM +0100, Luca Abeni wrote:
> 
>>Hi all,
>>
>>if I configure with
>>./configure --disable-decoder=snow --disable-encoder=snow
>>I get
>>[...]
>>gcc -Wl,--warn-common -rdynamic -g -o ffmpeg_g ffmpeg.o cmdutils.o -L./libavformat -lavformat -L./libavcodec -lavcodec -L./libavutil -lavutil -lm -lz -ldl
>>./libavcodec/libavcodec.a(dsputil.o): In function `dsputil_init':/tmp/ffmpeg/libavcodec/dsputil.c:4052: undefined reference to `ff_snow_horizontal_compose97i'
>>:/tmp/ffmpeg/libavcodec/dsputil.c:4053: undefined reference to `ff_snow_inner_add_yblock'
>>:/tmp/ffmpeg/libavcodec/dsputil.c:4051: undefined reference to `ff_snow_vertical_compose97i'
>>collect2: ld returned 1 exit status
>>make: *** [ffmpeg_g] Error 1
>>
>>I do not know what's the best way to fix this bug. It seems that all the
>>other codecs address this issue by still compiling some code even if
>>they are disabled (for example, if I do "--disable-decoder=h264
>>--disable-encoder=h264", h264idct.c is still compiled).
>>This increases the library size a lot... :(
> 
> 
> Guillaume, here's that 18 wheeler you wanted.

;-)


> Fault goes to me (and you :). 
> I remember noticing this a while ago, I completely forgot to fix it though.

Thanks for sparing me to write the patch :-)
Applied.

Guillaume





More information about the ffmpeg-devel mailing list