[FFmpeg-devel] swscale in vhooks

Måns Rullgård mans
Sun Jul 1 11:12:17 CEST 2007


"V?ctor Paesa" <wzrlpy at arsystel.com> writes:

> Hi,
>
> M?ns Rullg?rd dijo:
>> "V?ctor Paesa" writes:
>>
>>> Hi,
>>>
>>>>> Revision 8013 added -lswscale unconditionally to Cygwin
>>>>> VHOOKSHFLAGS. Is that still needed? It works fine without that flag
>>>>> in MinGW. Also, setting that unconditionally and not giving out
>>>>> errors on configure when the swscaler is not enabled causes linking
>>>>> problems.
>>>>
>>>> I'll give it a try tomorrow, it's a bit late here by now.
>>>
>>> Thanks for noticing, indeed it may be removed, as Cygwin builds OK
>>> with or without --enable-swscale after undoing r8013.
>>>
>>> M?ns, Diego, OK to commit the attached patch?
>>
>> If it builds and works, sure.
>
> I must apologize: this morning I built again
> (--disable-static --enable-shared --enable-gpl --enable-swscaler)
> and it failed. Maybe I had some leftover from previous compiles?
>
> Builds with "--disable-static --enable-shared --enable-gpl" or
> "--disable-static --enable-shared" were OK this morning too.
>
> So I propose now another patch, instead of the previous one:
>
> Index: configure
> ===================================================================
> --- configure	(revision 9451)
> +++ configure	(working copy)
> @@ -1163,8 +1163,13 @@
>      targetos=cygwin
>      shlibdir="$bindir"
>      dv1394="no"
> -    VHOOKSHFLAGS='-shared -L$(BUILD_ROOT)/libavformat -L$(BUILD_ROOT)/libavcodec -L$(BUILD_ROOT)/libswscale -L$(BUILD_ROOT)/libavutil'
> -    VHOOKLIBS='-lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lswscale$(BUILDSUF) -lavutil$(BUILDSUF) $(EXTRALIBS)'
> +    if enabled swscaler; then
> +        VHOOKSHFLAGS='-shared -L$(BUILD_ROOT)/libavformat -L$(BUILD_ROOT)/libavcodec -L$(BUILD_ROOT)/libswscale -L$(BUILD_ROOT)/libavutil'
> +        VHOOKLIBS='-lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lswscale$(BUILDSUF) -lavutil$(BUILDSUF) $(EXTRALIBS)'
> +    else
> +        VHOOKSHFLAGS='-shared -L$(BUILD_ROOT)/libavformat -L$(BUILD_ROOT)/libavcodec -L$(BUILD_ROOT)/libavutil'
> +        VHOOKLIBS='-lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lavutil$(BUILDSUF) $(EXTRALIBS)'
> +    fi
>      osextralibs=""
>      EXESUF=".exe"
>      SLIBPREF="cyg"

Please put only the bits that differ inside the if/else/fi.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list