[gst-devel] compile trouble

Jan Schmidt thaytan at noraisin.net
Tue Nov 22 02:01:02 CET 2005


On Mon, 2005-11-21 at 21:05 +0100, Yuri Noferini wrote:
> anyone can explain why when i try to compile this piece of code gcc
> fails with :
> 
> > gstthesisscreencap.c:34: error: syntax error before '{' token
> > make[1]: *** [libgstthesisscreencap_la-gstthesisscreencap.lo] Error 1
> > make[1]: Leaving directory `/home/yurix/mediatesi/work/source/gstthesisscreencap /src'
> > make: *** [all-recursive] Error 1
> > 

Is this the first error in the compilation output? If so, I'd look at
the piece immediately BEFORE your code snippet and make sure you haven't
left out a closing brace or semicolon.

If it's not, you take a look at the spelling of "gst_pad_template_new"

J.

> 
> here you are the evil code :
> 
> static void
> gst_thesisscreencap_base_init (gpointer g_class)
> {
> 	GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
> 
> 	gst_element_class_set_details (element_class, &thesisscreencap_details);
> 
> 	gst_element_class_add_pad_template (element_class,
> 					gstt_pad_template_new (
> 						"src",
> 						GST_PAD_SRC, 
> 						GST_PAD_ALWAYS,
>           					GST_STATIC_CAPS(
> 						        "video/x-raw-rgb, "
>         						"bpp = (int) 32, "
>         						"depth = (int) 24, "
>         						"width = (int) [640 , 1024] ,"
> 							"height = (int) [480 , 768] ,"	
>         						"framerate = (double) [ 1.0, 10.0 ]"
> 						)
> 					)
> 				);
> }
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
> Register for a JBoss Training Course.  Free Certification Exam
> for All Training Attendees Through End of 2005. For more info visit:
> http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> 

-- 
Jan Schmidt thaytan at noraisin.net

"Computer games don't affect kids; I mean if Pac-Man affected us as
kids, we'd all be running around in darkened rooms, munching magic pills
and listening to repetitive electronic music." - Unknown






More information about the gstreamer-devel mailing list