[FFmpeg-devel] ffplay failed to build under mingw32 (and under OS X)

Michael Niedermayer michaelni at gmx.at
Mon May 16 03:16:31 CEST 2011


On Sun, May 15, 2011 at 10:38:04AM -0400, Hanspeter Niederstrasser wrote:
> > after "configure: Revert sdl hunk of 4fa18c56. This breaks OSX"
> > (http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=ca87d439065c705311d0a98076df3c021b187adb)
> > ffplay is stopped to build. That happens because of SDL check fail. To
> > be more precise it fail in a check:
> >
> > /.../
> > check_func_headers SDL.h SDL_Init $sdl_cflags $sdl_libs &&
> > /.../
> >
> > that give in config.log message:
> >
> > /.../
> > check_func_headers SDL.h SDL_Init
> > -I/usr/i686-pc-mingw32/sys-root/mingw/include/SDL -D_GNU_SOURCE=1
> > -Dmain=SDL_main -lmingw32 -lSDLmain -lSDL -mwindows
> > check_ld -I/usr/i686-pc-mingw32/sys-root/mingw/include/SDL
> > -D_GNU_SOURCE=1 -Dmain=SDL_main -lmingw32 -lSDLmain -lSDL -mwindows
> > check_cc -I/usr/i686-pc-mingw32/sys-root/mingw/include/SDL
> > -D_GNU_SOURCE=1 -Dmain=SDL_main -mwindows
> > BEGIN /tmp/ffconf.CKUleDYo.c
> >      1 #include <SDL.h>
> >      2 long check_SDL_Init(void) { return (long) SDL_Init; }
> >      3 int main(void) { return 0; }
> > END /tmp/ffconf.CKUleDYo.c
> > ccache i686-pc-mingw32-gcc -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112
> > -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -U__STRICT_ANSI__ --static
> > -I/var/www/users/research/ffmpeg/snapshots/build/include -std=c99
> > -fno-common -fomit-frame-pointer
> > -I/usr/i686-pc-mingw32/sys-root/mingw/include/SDL -D_GNU_SOURCE=1
> > -Dmain=SDL_main -mwindows -c -o /tmp/ffconf.PXRBqhG8.o
> > /tmp/ffconf.CKUleDYo.c
> > /tmp/ffconf.CKUleDYo.c:3:5: error: conflicting types for 'SDL_main'
> > /usr/i686-pc-mingw32/sys-root/mingw/include/SDL/SDL_main.h:53:12: note:
> > previous declaration of 'SDL_main' was here
> > /.../
> 
> The same error happens on OS X (10.5/i386 with SDL-1.2.14 built
> locally), but presumably also happens on other OS X versions.
> 
> My solution was to have check_func_headers() test for the same things
> as in the pkg-config based check in the conditional (which does work
> on OS X if I force the conditional to not use sdl-config):

hmm, ok, i commited it, lets see if this works better than the previous

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Democracy is the form of government in which you can choose your dictator
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110516/7e76649d/attachment.asc>


More information about the ffmpeg-devel mailing list