[FFmpeg-devel] [PATCH] Fix cmdutils.c build with --disable-swscale

Stefano Sabatini stefano.sabatini-lala
Fri Jan 29 15:45:10 CET 2010


On date Friday 2010-01-29 17:22:08 +0300, Anatoliy Nenashev encoded:
> Hi
>
> Rafa?l Carr? wrote:
>> Hi,
>>
>> Version & configuration are printed for each built library in cmdutils.c
>>
>> There is a #if CONFIG_lib conditional for avfilter and postproc already,
>> the patch just adds a conditional for swscale.
>>
>> Note: avdevice / avformat / avcodec can be disabled as well but I
>> didn't bother disabling them in configure to see all the places which
>> broke (for example when using AVCodecContext or AVFormatContext).
[...]
> I can't build FFmpeg without this patch during last week.
> I use "./configure" script without any args and in final make step I see  
> error message:
>
> cmdutils.o: In function `show_banner':
> /home/alien/GIT_REP/ffmpeg/cmdutils.c:379: undefined reference to  
> `swscale_configuration'
> collect2: ld returned 1 exit status
> make: *** [ffserver_g] Error 1
> make: *** Waiting for unfinished jobs....
> cmdutils.o: In function `show_banner':
> /home/alien/GIT_REP/ffmpeg/cmdutils.c:379: undefined reference to  
> `swscale_configuration'
> collect2: ld returned 1 exit status
> make: *** [ffmpeg_g] Error 1
> cmdutils.o: In function `show_banner':
> /home/alien/GIT_REP/ffmpeg/cmdutils.c:379: undefined reference to  
> `swscale_configuration'
> collect2: ld returned 1 exit status
> make: *** [ffplay_g] Error 1
> rm ffmpeg.o ffserver.o
>
> Will it be applied or something else must be done with this issue?

It has to do with how git deals with lsws IIRC, you need to
explicitely download the libswscale tree *or* you need to explicitely
update your libswscale tree before to build.

Regards.
-- 
FFmpeg = Faithless and Funny Meaningful Perennial Exuberant Ghost



More information about the ffmpeg-devel mailing list