Hi all<br><br>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:<br>
<br><a href="http://home.clara.net/raoulgough/vidmodem/dshow.html" target="_blank">http://home.clara.net/raoulgough/vidmodem/dshow.html</a><br><a href="http://step.polymtl.ca/%7Eguardia/programming.php" target="_blank">http://step.polymtl.ca/~guardia/programming.php</a><br>
<br>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:<br><br>C:\DXSDK\Samples\C++\DirectShow\BaseClasses> gawk.exe -f C:\MinGW\bin\dsw2mak.awk baseclasses.dsw<br>
dsw2mak.awk Generates a Makefile from a .DSW/.DSP file Jose Fonseca<br><br>baseclasses.dsw<br>: unknown sectionGlobal<br>baseclasses.dsp<br>baseclasses.dsp:46: /Gi: C compiler option not implemented<br>baseclasses.dsp:46: /Gz: C compiler option not implemented<br>
baseclasses.dsp:70: /Gi: C compiler option not implemented<br>baseclasses.dsp:70: /Gz: C compiler option not implemented<br>baseclasses.dsp:94: /Gi: C compiler option not implemented<br>baseclasses.dsp:94: /Gz: C compiler option not implemented<br>
baseclasses.dsp:118: /Gi: C compiler option not implemented<br>baseclasses.dsp:118: /Gz: C compiler option not implemented<br><br>C:\DXSDK\Samples\C++\DirectShow\BaseClasses> set CFG=BaseClasses - Win32 Release<br><br>
C:\DXSDK\Samples\C++\DirectShow\BaseClasses> make<br>make -f baseclasses.mak<br>make[1]: Entering directory `/c/DXSDK/Samples/C++/DirectShow/BaseClasses'<br>g++ -W -fexceptions -O2 -I. -I../../../../include -DNDEBUG -DWIN32 -D_MBCS -D_LIB -D_WIN32_DCOM -DWINVER=0x400 -o amextra.o -c amextra.cpp<br>
In file included from ./streams.h:146,<br> from amextra.cpp:10:<br>.<b style="color: rgb(255, 0, 0);">/combase.h: In function `LONG InterlockedIncrement(volatile LONG*)':<br>./combase.h:245: error: `LONG InterlockedIncrement(volatile LONG*)' was declared `extern' and later `static'<br>
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1694: error: previous declaration of `LONG InterlockedIncrement(volatile LONG*)'<br>./combase.h: In function `LONG InterlockedDecrement(volatile LONG*)':<br>
./combase.h:248: error: `LONG InterlockedDecrement(volatile LONG*)' was declared `extern' and later `static'<br>c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1685: error: previous declaration of `LONG InterlockedDecrement(volatile LONG*)'<br>
make[1]: *** [amextra.o] Error 1<br>make[1]: Leaving directory `/c/DXSDK/Samples/C++/DirectShow/BaseClasses'<br>make: *** [BaseClasses] Error 2</b><br><br>C:\DXSDK\Samples\C++\DirectShow\BaseClasses><br><br>Well, any tip about what is the best way to compile those dshows would be great to me. Thanks for attention.<br>