|
From: Marcelo de Sá M. <mar...@gm...> - 2009-08-31 14:40:33
|
Hi all I need to compile all those 3 packages from gstreamer-plugins-bad. I only have compiled on MinGW directsoundsink and directdrawsink with sucess. So from what I have read I downloaded the SDK Directx9 e started to follow 2 tutorials: http://home.clara.net/raoulgough/vidmodem/dshow.html http://step.polymtl.ca/~guardia/programming.php<http://step.polymtl.ca/%7Eguardia/programming.php> I dont know what is the best way to compile dshow api. Although I changed the headers and cpps and the tutorials recommend, but now I am stucked by this errors: C:\DXSDK\Samples\C++\DirectShow\BaseClasses> gawk.exe -f C:\MinGW\bin\dsw2mak.awk baseclasses.dsw dsw2mak.awk Generates a Makefile from a .DSW/.DSP file Jose Fonseca baseclasses.dsw : unknown sectionGlobal baseclasses.dsp baseclasses.dsp:46: /Gi: C compiler option not implemented baseclasses.dsp:46: /Gz: C compiler option not implemented baseclasses.dsp:70: /Gi: C compiler option not implemented baseclasses.dsp:70: /Gz: C compiler option not implemented baseclasses.dsp:94: /Gi: C compiler option not implemented baseclasses.dsp:94: /Gz: C compiler option not implemented baseclasses.dsp:118: /Gi: C compiler option not implemented baseclasses.dsp:118: /Gz: C compiler option not implemented C:\DXSDK\Samples\C++\DirectShow\BaseClasses> set CFG=BaseClasses - Win32 Release C:\DXSDK\Samples\C++\DirectShow\BaseClasses> make make -f baseclasses.mak make[1]: Entering directory `/c/DXSDK/Samples/C++/DirectShow/BaseClasses' g++ -W -fexceptions -O2 -I. -I../../../../include -DNDEBUG -DWIN32 -D_MBCS -D_LIB -D_WIN32_DCOM -DWINVER=0x400 -o amextra.o -c amextra.cpp In file included from ./streams.h:146, from amextra.cpp:10: .*/combase.h: In function `LONG InterlockedIncrement(volatile LONG*)': ./combase.h:245: error: `LONG InterlockedIncrement(volatile LONG*)' was declared `extern' and later `static' c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1694: error: previous declaration of `LONG InterlockedIncrement(volatile LONG*)' ./combase.h: In function `LONG InterlockedDecrement(volatile LONG*)': ./combase.h:248: error: `LONG InterlockedDecrement(volatile LONG*)' was declared `extern' and later `static' c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1685: error: previous declaration of `LONG InterlockedDecrement(volatile LONG*)' make[1]: *** [amextra.o] Error 1 make[1]: Leaving directory `/c/DXSDK/Samples/C++/DirectShow/BaseClasses' make: *** [BaseClasses] Error 2* C:\DXSDK\Samples\C++\DirectShow\BaseClasses> Well, any tip about what is the best way to compile those dshows would be great to me. Thanks for attention. |