[FFmpeg-devel] ffplay failed to build under mingw32 (and under OS X)
Hanspeter Niederstrasser
niederstrasser at gmail.com
Mon May 16 23:00:33 CEST 2011
On Sun, May 15, 2011 at 9:16 PM, Michael Niedermayer <michaelni at gmx.at> wrote:
>
> 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
On OS X 10.5, SDL detection works again.
Hanspeter
--
Disclaimer:
By sending an email to ANY of my addresses you are agreeing that:
1. I am by definition, "the intended recipient"
2. All information in the email is mine to do with as I see fit and
make such financial profit, political mileage, or good joke as it
lends itself to.
3. I may take the contents as representing the views of your company.
4. This overrides any disclaimer or statement of confidentiality that
may be included with your message.
More information about the ffmpeg-devel
mailing list