[MPlayer-users] Compiling trunk under MinGW/MSYS results in compilation error

Alex Sherwin alex.sherwin at gmail.com
Wed Sep 3 22:05:08 CEST 2008


I've resolved my issues with compiling on Linux and OS X.  However, I
can only get the 1.0rc2 code to compile under Windows with MinGW/MSYS.

I've installed the "current" MinGW install (automated Windows
installer, using the "current" revision option).

I've installed the following libs:
libiconv-1.9.1
freetype-2.3.7
zlib-1.2.3
libpng-1.2.31
dx headers in mingw/include

./configure completes without any issues

During make compilation, the following error occurs:

gcc -Wdisabled-optimization -Wdeclaration-after-statement -std=gnu99
-I. -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4
-march=i486 -mtune=i686 -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
parser-mpcmd.o parser-mpcmd.c
gcc -Wdisabled-optimization -Wdeclaration-after-statement -std=gnu99
-I. -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4
-march=i486 -mtune=i686 -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/3.4.5/../../../../include/objbase.h:73,
                 from
C:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ole2.h:9,
                 from
C:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/windows.h:114,
                 from
C:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winsock2.h:22,
                 from stream/network.h:22,
                 from stream/stream.h:69,
                 from command.c:9:
C:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/objidl.h:69:
error: syntax error before numeric constant
make: *** [command.o] Error 1

The same thing happened when I was attempting to use the latest
version of MinGW distributions (newer gcc, etc).  AFAIK, I've done a
very basic, simple setup that should be able compile the unmodified
mplayer trunk source.

I've looked at objidl.h:69, there are no syntax erorrs there..

typedef enum tagSTREAM_SEEK {
	STREAM_SEEK_SET,
	STREAM_SEEK_CUR,
	STREAM_SEEK_END
} STREAM_SEEK;    <-- line 69
typedef struct tagINTERFACEINFO {
	LPUNKNOWN pUnk;
	IID iid;
	WORD wMethod;
} INTERFACEINFO,*LPINTERFACEINFO;


Is there some step I missed somewhere?
-- 
Alexander Sherwin
alex.sherwin at gmail.com



More information about the MPlayer-users mailing list