[gstreamer-bugs] [Bug 361720] grammar project: error generating gstmarshal.c and gstmarshal.h

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Fri Oct 13 11:13:39 PDT 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=361720

  GStreamer | gstreamer (core) | Ver: 0.10.10


Marcus Granado changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |UNCONFIRMED




------- Comment #2 from Marcus Granado  2006-10-13 18:12 UTC -------
indeed. 
the code below corrects this bad behaviour. if glib-genmarshal is not available
in the path, it doesn't try do use it, and shows a friendly error message
hinting the user on how to correct the problem. using it, both issues 1 and 2
do not occur anymore. 

please cut and paste it to the custom build step of grammar/gstmarshal.list
(right-click its properties, then custombuidstep|general, then replace the
content of the 'command line' field).


---- cut here

glib-genmarshal > NUL 2> NUL
if %errorlevel% == 9009 goto NOGLIBGENMARSHAL 
rem resets errorlevel to 0 because it is 1 now:
dir > NUL

if exist ..\..\gst\gstmarshal.c goto HEADER
echo #include "glib-object.h" > gstmarshal.c.tmp
echo #include "gstmarshal.h" >> gstmarshal.c.tmp
glib-genmarshal --body --prefix=gst_marshal ..\..\gst\gstmarshal.list >>
gstmarshal.c.tmp
move gstmarshal.c.tmp ..\..\gst\gstmarshal.c
:HEADER
if exist ..\..\gst\gstmarshal.h goto END
echo #include "gst/gstconfig.h" > gstmarshal.h.tmp
glib-genmarshal --header --prefix=gst_marshal ..\..\gst\gstmarshal.list >>
gstmarshal.h.tmp
move gstmarshal.h.tmp ..\..\gst\gstmarshal.h
goto END

:NOGLIBGENMARSHAL
echo ERROR %errorlevel%
echo ### YOU DO NOT HAVE GLIB-GENMARSHAL.EXE IN YOUR PATH.
echo ### INSTALL GLIB-DEV AND/OR MAKE SURE IT IS IN YOUR PATH!

:END


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email




More information about the Gstreamer-bugs mailing list