[FFmpeg-devel] [PATCH] MinGW configure version checks

Stefano Sabatini stefano.sabatini-lala
Sun Oct 26 20:23:23 CET 2008


On date Tuesday 2008-10-21 19:43:48 +0200, V?ctor Paesa encoded:
> Hi,
> 
> David DeHaven said:
> > On Oct 20, 2008, at 5:21 AM, Stefano Sabatini wrote:
> >>> Index: configure
> >>> ===================================================================
> >>> --- configure	(revision 15638)
> >>> +++ configure	(working copy)
> >>> @@ -1316,6 +1316,10 @@
> >>>         SHFLAGS='-shared -Wl,--output-def,$$(@:$(SLIBSUF)=.def) -
> >>> Wl,--enable-runtime-pseudo-reloc -Wl,--enable-auto-image-base'
> >>>         objformat="win32"
> >>>         enable dos_paths
> >>> +        check_cpp_condition _mingw.h "(__MINGW32_MAJOR_VERSION >
> >>> 3) || (__MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION >=
> >>> 15)" ||
> >>> +            die "ERROR: MinGW runtime version must be >= 3.15." +
> >>>     check_cpp_condition w32api.h "(__W32API_MAJOR_VERSION > 3)   ||
> >>> (__W32API_MAJOR_VERSION == 3 && __W32API_MINOR_VERSION >= 12)" || +
> >>>          die "ERROR: w32api version must be >= 3.12."
> >>>         ;;
> >>>     cygwin*)
> >>>         target_os=cygwin
> >>
> >> My MinGW isn't working and I'm quite busy this week, so if there is
> >> someone which can test the patch please do it, otherwise I'll do it
> >> when I'll have more time to set up MinGW, but I don't know when this
> >> will happen.
> >
> >
> > I can check...
> >
> > mingwrt 3.15.1 + w32api 3.12: success
> > mingwrt 3.14 + w32api 3.12: fail!
> > mingwrt 3.15 + w32api 3.9: fail!
> >
> > Seems OK to me.
> 
> I cross-compiled for MinGW32 under Cygwin:
> 
> mingw-runtime 3.15.1-1 + w32api 3.12-1 : success
> mingw-runtime 3.15.1-1 + w32api 3.11-1 : dies
> 
> so far that's fine.
> 
> But I believe the w32api>=3.12 is only required by the vfw stuff (capture
> and Avisynth).
> Hence the condition to die should check if one of either vfwcap_demuxer or
> avisynth is enabled.

Please check the patch below.

Regards.
-- 
FFmpeg = Fast & Fiendish Meaningful Pitiful Elaborated Gadget
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check-mingw-version-01.patch
Type: text/x-diff
Size: 912 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081026/9ea7f5d5/attachment.patch>



More information about the ffmpeg-devel mailing list