[MPlayer-users] directx support on cygwin
Puneet Arora
arorap at gmail.com
Wed Nov 3 01:00:55 CET 2010
I'm trying to build mplayer under cygwin on Windows 7 x64. So far I've
run configure a couple of times, noting down libs that are not
supported and installing the libs to have them supported. I however
cannot get the directx support working. As per the directions, I
dumped the dx7 header files in the include folder before running
configure. However, config.log shows a bunch of parse errors in one of
the directx header files, because of which configure is reporting
directx as not supported. Could someone help? I've pasted a part of
config.log below. Thank you.
--
============ Checking for Directx ============
#include <ddraw.h>
#include <dsound.h>
int main(void) { return 0; }
cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith
-Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes
-Wdisabled-optimization -Wdeclaration-after-statement -std=gnu99 -O4
-march=pentium-m -mtune=pentium-m -pipe -ffast-math
-fomit-frame-pointer /tmp/mplayer-configure-10091-3380/tmp.c -I.
-Iffmpeg -fno-common -lwinmm -ffast-math -liconv -lpng -lz -lmng
-lz -ljpeg -lgif -lgdi32 -lopengl32 -lgdi32 -lwinmm -o
/tmp/mplayer-configure-10091-3380/tmp.exe -lgdi32
In file included from /tmp/mplayer-configure-10091-3380/tmp.c:1:
/usr/include/ddraw.h:112: error: parse error before '*' token
/usr/include/ddraw.h:113: error: parse error before '*' token
/usr/include/ddraw.h:114: error: parse error before '*' token
/usr/include/ddraw.h:115: error: parse error before '*' token
/usr/include/ddraw.h:116: error: parse error before '*' token
/usr/include/ddraw.h:117: error: parse error before '*' token
/usr/include/ddraw.h:118: error: parse error before '*' token
/usr/include/ddraw.h:119: error: parse error before '*' token
/usr/include/ddraw.h:120: error: parse error before '*' token
/usr/include/ddraw.h:122: error: parse error before '*' token
/usr/include/ddraw.h:123: error: parse error before '*' token
/usr/include/ddraw.h:124: error: parse error before '*' token
/usr/include/ddraw.h:125: error: parse error before '*' token
/usr/include/ddraw.h:127: error: parse error before '*' token
/usr/include/ddraw.h:128: error: parse error before '*' token
/usr/include/ddraw.h:129: error: parse error before '*' token
/usr/include/ddraw.h:130: error: parse error before '*' token
/usr/include/ddraw.h:210: error: parse error before "PASCAL"
/usr/include/ddraw.h:211: error: parse error before "PASCAL"
/usr/include/ddraw.h:212: error: parse error before "PASCAL"
/usr/include/ddraw.h:213: error: parse error before "PASCAL"
/usr/include/ddraw.h:214: error: parse error before "PASCAL"
/usr/include/ddraw.h:222: error: parse error before "BYTE"
/usr/include/ddraw.h:224: error: parse error before "red"
/usr/include/ddraw.h:225: error: parse error before "alpha"
/usr/include/ddraw.h:228: error: parse error before "FAR"
/usr/include/ddraw.h:236: error: parse error before "BYTE"
/usr/include/ddraw.h:238: error: parse error before "blue"
/usr/include/ddraw.h:239: error: parse error before "alpha"
/usr/include/ddraw.h:242: error: parse error before "FAR"
/usr/include/ddraw.h:250: error: parse error before "DWORD"
/usr/include/ddraw.h:256: error: parse error before "FAR"
/usr/include/ddraw.h:264: error: parse error before "DWORD"
/usr/include/ddraw.h:266: error: parse error before "dwROP"
/usr/include/ddraw.h:267: error: parse error before "dwDDROP"
/usr/include/ddraw.h:268: error: parse error before "dwRotationAngle"
/usr/include/ddraw.h:269: error: parse error before "dwZBufferOpCode"
..
.... a bunch of more lines like these ..
..
/usr/include/ddraw.h:2450: error: parse error before "lSharpness"
/usr/include/ddraw.h:2451: error: parse error before "lGamma"
/usr/include/ddraw.h:2452: error: parse error before "lColorEnable"
/usr/include/ddraw.h:2453: error: 'dwReserved1' redeclared as
different kind of symbol
/usr/include/ddraw.h:640: error: previous declaration of 'dwReserved1' was here
/usr/include/ddraw.h:2454: error: parse error before '}' token
In file included from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/windows.h:48,
from /usr/include/d3dtypes.h:13,
from /usr/include/dsound.h:13,
from /tmp/mplayer-configure-10091-3380/tmp.c:2:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/windef.h:229:
error: conflicting types for 'DWORD'
/usr/include/ddraw.h:930: error: previous declaration of 'DWORD' was here
In file included from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/objbase.h:72,
from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/ole2.h:9,
from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/windows.h:114,
from /usr/include/d3dtypes.h:13,
from /usr/include/dsound.h:13,
from /tmp/mplayer-configure-10091-3380/tmp.c:2:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/unknwn.h:24:
error: parse error before "void"
In file included from /usr/include/dsound.h:13,
from /tmp/mplayer-configure-10091-3380/tmp.c:2:
/usr/include/d3dtypes.h:103: error: parse error before "lpDdsd"
/usr/include/d3dtypes.h:104: error: parse error before "lpDDPixFmt"
{standard input}: Assembler messages:
{standard input}:674: Error: symbol `_green' is already defined
{standard input}:678: Error: symbol `_blue' is already defined
Result is: no
More information about the MPlayer-users
mailing list