[gst-devel] MSVS C++ .net 2003 Project Problem & suggested correction

Larry Berlinski LBerlinski at inspireworksinc.com
Thu Nov 11 08:03:09 CET 2004


There's a problem with the command line for the Pre-Build Event property of libgstreamer when trying to compile using MSVS (MSVC71).

Here's the old and updated versions of the command line.

[snip ORIGINAL.txt]
copy $(ProjectDir)\gstconfig.h $(ProjectDir)\..\gst\gstconfig.h
copy $(ProjectDir)\gstversion.h $(ProjectDir)\..\gst\gstversion.h
copy $(ProjectDir)\gstenumtypes.h $(ProjectDir)\..\gst\gstenumtypes.h
copy $(ProjectDir)\gstenumtypes.c $(ProjectDir)\..\gst\gstenumtypes.c
echo #include "gst/gstconfig.h" > gstmarshal.h.tmp
glib-genmarshal --header --prefix=gst_marshal $(ProjectDir)..\gst\gstmarshal.list >> gstmarshal.h.tmp
move gstmarshal.h.tmp $(ProjectDir)..\gst\gstmarshal.h
echo #include "glib-object.h" > gstmarshal.c.tmp
echo #include "gstmarshal.h" >> gstmarshal.c.tmp
glib-genmarshal --body --prefix=gst_marshal $(ProjectDir)..\gst\gstmarshal.list >> gstmarshal.c.tmp
move gstmarshal.c.tmp $(ProjectDir)..\gst\gstmarshal.c
bison -d -v -p_gst_parse__yy $(ProjectDir)..\gst\parse\grammar.y -o $(ProjectDir)..\gst\parse\grammar.tab.c
flex -P_gst_parse_yy $(ProjectDir)..\gst\parse\parse.l
move lex._gst_parse_yy.c $(ProjectDir)..\gst\parse\lex._gst_parse_yy.c
type gstreamer.def > gst.def
type gstreamer-dbg.def >> gst.def
[/snip ORIGINAL.txt]

[snip UPDATED.txt]
copy $(ProjectDir)\gstconfig.h $(ProjectDir)\..\gst\gstconfig.h
copy $(ProjectDir)\gstversion.h $(ProjectDir)\..\gst\gstversion.h
copy $(ProjectDir)\gstenumtypes.h $(ProjectDir)\..\gst\gstenumtypes.h
copy $(ProjectDir)\gstenumtypes.c $(ProjectDir)\..\gst\gstenumtypes.c
echo #include "gst/gstconfig.h" > gstmarshal.h.tmp
glib-genmarshal --header --prefix=gst_marshal $(ProjectDir)\..\gst\gstmarshal.list >> gstmarshal.h.tmp
move gstmarshal.h.tmp $(ProjectDir)\..\gst\gstmarshal.h
echo #include "glib-object.h" > gstmarshal.c.tmp
echo #include "gstmarshal.h" >> gstmarshal.c.tmp
glib-genmarshal --body --prefix=gst_marshal $(ProjectDir)\..\gst\gstmarshal.list >> gstmarshal.c.tmp
move gstmarshal.c.tmp $(ProjectDir)\..\gst\gstmarshal.c
bison -d -v -p_gst_parse__yy $(ProjectDir)\..\gst\parse\grammar.y -o $(ProjectDir)\..\gst\parse\grammar.tab.c
flex -P_gst_parse_yy $(ProjectDir)\..\gst\parse\parse.l
move lex._gst_parse_yy.c $(ProjectDir)\..\gst\parse\lex._gst_parse_yy.c
type gstreamer.def > gst.def
type gstreamer-dbg.def >> gst.def
[/snip UPDATED.txt]

Here's the result of a diff on the above text

[snip DIFF-RESULTS]
C:\>diff original.txt updated.txt
6,7c6,7
< glib-genmarshal --header --prefix=gst_marshal $(ProjectDir)..\gst\gstmarshal.list >> gstmarshal.h.tmp
< move gstmarshal.h.tmp $(ProjectDir)..\gst\gstmarshal.h
---
> glib-genmarshal --header --prefix=gst_marshal $(ProjectDir)\..\gst\gstmarshal.list >> gstmarshal.h.tmp
> move gstmarshal.h.tmp $(ProjectDir)\..\gst\gstmarshal.h
10,14c10,14
< glib-genmarshal --body --prefix=gst_marshal $(ProjectDir)..\gst\gstmarshal.list >> gstmarshal.c.tmp
< move gstmarshal.c.tmp $(ProjectDir)..\gst\gstmarshal.c
< bison -d -v -p_gst_parse__yy $(ProjectDir)..\gst\parse\grammar.y -o $(ProjectDir)..\gst\parse\grammar.tab.c
< flex -P_gst_parse_yy $(ProjectDir)..\gst\parse\parse.l
< move lex._gst_parse_yy.c $(ProjectDir)..\gst\parse\lex._gst_parse_yy.c
---
> glib-genmarshal --body --prefix=gst_marshal $(ProjectDir)\..\gst\gstmarshal.list >> gstmarshal.c.tmp
> move gstmarshal.c.tmp $(ProjectDir)\..\gst\gstmarshal.c
> bison -d -v -p_gst_parse__yy $(ProjectDir)\..\gst\parse\grammar.y -o $(ProjectDir)\..\gst\parse\grammar.tab.c
> flex -P_gst_parse_yy $(ProjectDir)\..\gst\parse\parse.l
> move lex._gst_parse_yy.c $(ProjectDir)\..\gst\parse\lex._gst_parse_yy.c
[/snip DIFF-RESULTS]

Also is there any activity to get win32's gstenumtypes.c/.h updated to reflect the change to remove GST_THREAD_MUTEX_LOCKED?

,,,,    
Ô¿Ô¬    Larry Berlinski

--> There are 10 types of people who understand binary: those who do and those who don't.




More information about the gstreamer-devel mailing list