[XviD-devel] DShow Build Issues

Brendan Brewster brendan.brewster at gmail.com
Fri Feb 25 17:05:27 CET 2011


I am having issues building the dshow module. The directx that I am using is
the patched version of the software development kit update (summer 2003) and
have used it in the past to build this module (probably years ago). A
difference from that of the readme is that I am running an updated cygwin
1.5.25 that has gcc 3.4.4. The errors I get are as follows:

$ make DXTREE=/cygdrive/d/dx90
  D: =build
  C: ./config.c
  C: ./debug.c
  C: ./Configure.cpp
In file included from <command line>:10:
/cygdrive/d/dx90/mingw_dshow_port.h:6:1: warning: "_WINGDI_" redefined
In file included from
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/windows.h:52,
                 from
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/rpc.h:2,
                 from
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/wtypes.h:1,
                 from /cygdrive/d/dx90/mingw_dshow_port.h:1,
                 from <command line>:10:
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/wingdi.h:3:1:
warning: this is the location of the previous definition
  C: ./CAbout.cpp
In file included from <command line>:10:
/cygdrive/d/dx90/mingw_dshow_port.h:6:1: warning: "_WINGDI_" redefined
In file included from
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/windows.h:52,
                 from
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/rpc.h:2,
                 from
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/wtypes.h:1,
                 from /cygdrive/d/dx90/mingw_dshow_port.h:1,
                 from <command line>:10:
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/wingdi.h:3:1:
warning: this is the location of the previous definition
In file included from
/cygdrive/d/dx90/Samples/C++/DirectShow/BaseClasses/streams.h:142,
                 from src/CAbout.h:29,
                 from src/CAbout.cpp:36:
/cygdrive/d/dx90/Samples/C++/DirectShow/BaseClasses/combase.h: In function
`LONG InterlockedIncrement(volatile LONG*)':
/cygdrive/d/dx90/Samples/C++/DirectShow/BaseClasses/combase.h:245: error:
`LONG InterlockedIncrement(volatile LONG*)' was declared `extern' and later
`static'
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/winbase.h:1694:
error: previous declaration of `LONG InterlockedIncrement(volatile LONG*)'
/cygdrive/d/dx90/Samples/C++/DirectShow/BaseClasses/combase.h: In function
`LONG InterlockedDecrement(volatile LONG*)':
/cygdrive/d/dx90/Samples/C++/DirectShow/BaseClasses/combase.h:248: error:
`LONG InterlockedDecrement(volatile LONG*)' was declared `extern' and later
`static'
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/winbase.h:1685:
error: previous declaration of `LONG InterlockedDecrement(volatile LONG*)'
make: *** [CAbout.obj] Error 1

Is there any workaround so that I may compile this module without somehow
back versioning my gcc install in cygwin?

Any input is appreciated!

Thanks,
-Brendan


More information about the Xvid-devel mailing list