[MPlayer-users] Compilation on win32 works, only with -nosound (liba52 is crashing MPlayer)

JonY 10walls at gmail.com
Sun Aug 31 07:21:18 CEST 2008


Alex Sherwin wrote:
> Compiling with (mostly newest version available for each):
>
> binutils 2.18.50
> gcc c++ 4.3.0
> gcc core 4.3.0
> mingw runtime 3.14
> mingw utils 0.3
> w32api 3.11
> MSYS 1.0.10
> freetype 2.3.7
> jpeg v6b
> mlame 398
> libiconv 1.9.1
> libpng 1.2.31
> libregif 4.1.7
> nasm 2.03.01
> x264 snapshow 20080829 2245
> xvidcore 1.1.3
> zlib 1.2.3
>
> Works for MPlayer-1.0rc2 tag, fails for trunk with the following error:
>
> gcc -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
> -std=gnu99 -I. -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4
> -march=i486 -mtune=generic -pipe -ffast-math -fomit-frame-pointer
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
> -I/usr/local/include/freetype2 -I/usr/local/include   -c -o command.o
> command.c
> In file included from
> c:\mingw\bin\../lib/gcc/mingw32/4.3.0/../../../../include/objbase.h:73,
>                  from
> c:\mingw\bin\../lib/gcc/mingw32/4.3.0/../../../../include/ole2.h:9,
>                  from
> c:\mingw\bin\../lib/gcc/mingw32/4.3.0/../../../../include/windows.h:114,
>                  from
> c:\mingw\bin\../lib/gcc/mingw32/4.3.0/../../../../include/winsock2.h:22,
>                  from stream/network.h:22,
>                  from stream/stream.h:69,
>                  from command.c:9:
> c:\mingw\bin\../lib/gcc/mingw32/4.3.0/../../../../include/objidl.h:69:
> error: expected identifier or '(' before numeric constant
> make: *** [command.o] Error 1
>
>

Hi,
please do not top post.

r27496 broke MinGW build rather badly. Try adding 
"-DWIN32_LEAN_AND_MEAN" to gcc when compiling the file, along with many 
of the files.



More information about the MPlayer-users mailing list