Compiling dshowsrcwrapper, dshowvideosink, dshowdecwrapper on MinGW

Marcelo de Sá Mendoza <[email protected]> Mon, 31 Aug 2009 11:40:24 -0300
Newsgroups gmane.comp.video.gstreamer.daily
Message-ID <[email protected]>
--===============7078976666910071128==
Content-Type: multipart/alternative; boundary=00c09ffb561b99bec80472710334

--00c09ffb561b99bec80472710334
Content-Type: text/plain; charset=ISO-8859-1

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.

--00c09ffb561b99bec80472710334
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

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=3D"http://home.clara.net/raoulgough/vidmodem/dshow.html" target=
=3D"_blank">http://home.clara.net/raoulgough/vidmodem/dshow.html</a><br><a =
href=3D"http://step.polymtl.ca/%7Eguardia/programming.php" target=3D"_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++\<div id=3D":14k" class=
=3D"ii gt">DirectShow\BaseClasses&gt; gawk.exe -f C:\MinGW\bin\dsw2mak.awk =
baseclasses.dsw<br>
dsw2mak.awk=A0=A0 Generates a Makefile from a .DSW/.DSP file=A0=A0 Jose Fon=
seca<br><br>baseclasses.dsw<br>: unknown sectionGlobal<br>baseclasses.dsp<b=
r>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.d=
sp:70: /Gz: C compiler option not implemented<br>baseclasses.dsp:94: /Gi: C=
 compiler option not implemented<br>baseclasses.dsp:94: /Gz: C compiler opt=
ion 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&gt; set CFG=3DBaseClasses - Win32 Release<br><br>

C:\DXSDK\Samples\C++\DirectShow\BaseClasses&gt; make<br>make -f baseclasses=
.mak<br>make[1]: Entering directory `/c/DXSDK/Samples/C++/DirectShow/BaseCl=
asses&#39;<br>g++=A0
-W -fexceptions -O2 -I. -I../../../../include -DNDEBUG -DWIN32 -D_MBCS
-D_LIB -D_WIN32_DCOM -DWINVER=3D0x400=A0=A0 -o amextra.o -c amextra.cpp<br>
In file included from ./streams.h:146,<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0 from amextra.cpp:10:<br>.<b style=3D"color: rgb(255, 0, 0);=
">/combase.h: In function `LONG InterlockedIncrement(volatile LONG*)&#39;:<=
br>./combase.h:245: error: `LONG InterlockedIncrement(volatile LONG*)&#39; =
was declared `extern&#39; and later `static&#39;<br>

c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1694: e=
rror: previous declaration of `LONG InterlockedIncrement(volatile LONG*)&#3=
9;<br>./combase.h: In function `LONG InterlockedDecrement(volatile LONG*)&#=
39;:<br>

./combase.h:248: error: `LONG InterlockedDecrement(volatile LONG*)&#39; was=
 declared `extern&#39; and later `static&#39;<br>c:/MinGW/bin/../lib/gcc/mi=
ngw32/3.4.5/../../../../include/winbase.h:1685: error: previous declaration=
 of `LONG InterlockedDecrement(volatile LONG*)&#39;<br>

make[1]: *** [amextra.o] Error 1<br>make[1]: Leaving directory `/c/DXSDK/Sa=
mples/C++/DirectShow/BaseClasses&#39;<br>make: *** [BaseClasses] Error 2</b=
><br><br>C:\DXSDK\Samples\C++\DirectShow\BaseClasses&gt;<br><br>Well, any t=
ip about what is the best way to compile those dshows would be great to me.=
 Thanks for attention.</div>

--00c09ffb561b99bec80472710334--


--===============7078976666910071128==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
--===============7078976666910071128==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
gstreamer-daily mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gstreamer-daily

--===============7078976666910071128==--