[FFmpeg-devel] compile issues under mingw-cross-env
John Calcote
john.calcote
Sat Jul 10 21:06:29 CEST 2010
Anyone ever tried compiling ffmpeg under mingw-cross-env
(http://www.nongnu.org/mingw-cross-env/)? I've been playing with it and
I've found the following issues with CPPFLAGS in the generated config.mak:
1) I had to change -std=c99 to -std=gnu99 because _STRICT_ANSI is
enabled if -std=c99 is used which means functions like strcasecmp aren't
available (at least the prototypes aren't).
2) I had to remove the definition of _POSIX_C_SOURCE=200112 because
defining it causes pid_t to not be defined in sched.h.
I used the following command line to configure:
$ configure --enable-postproc --enable-gpl --enable-x11grab
--enable-pthreads --enable-nonfree --enable-libvorbis
--target-os=mingw32 --enable-memalign-hack --arch=x86_64
--cross-prefix=i686-pc-mingw32-
Note this is a 64-bit windows build (arch=x86_64).
After making these changes in the generated config.mak file, ffmpeg and
utilities compiled - not cleanly, mind you, but at least as cleanly as
it does in normal non-cross builds.
Any comments would be appreciated. Perhaps I'm doing something
fundamentally wrong in my cross compile?
Thanks in advance,
John
More information about the ffmpeg-devel
mailing list