[gst-devel] Hello World on FC4

Edward Hervey bilboed at gmail.com
Mon Feb 20 23:47:01 CET 2006


Hi,

On 2/21/06, Benjy Grogan <benjy.grogan at gmail.com> wrote:
> Hello,
>
>  I'm trying to get the Hello World example available in the gstreamer
> documentation to compile on FC4 using gstreamer 0.8 without success.  I've
> followed the instructions at:
>
> <http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-helloworld.html>
>
>  I get the error messages:
>
>  [benjy at localhost ~]$ gcc -Wall $(pkg-config --cflags --libs gstreamer-0.8)
> helloworld.c -o helloworld
>
>  helloworld.c:10: error: syntax error before '*' token
>  helloworld.c: In function 'bus_call':
>  helloworld.c:14: error: 'data' undeclared (first use in this function)
>  helloworld.c:14: error: (Each undeclared identifier is reported only once
>  helloworld.c:14: error: for each function it appears in.)
>  helloworld.c:16: warning: implicit declaration of function
> 'GST_MESSAGE_TYPE'
>  helloworld.c:16: error: 'msg' undeclared (first use in this function)
>  helloworld.c:17: error: 'GST_MESSAGE_EOS' undeclared (first use in this
> function)
>  helloworld.c:21: error: 'GST_MESSAGE_ERROR' undeclared (first use in this
> function)
>  helloworld.c:25: warning: implicit declaration of function
> 'gst_message_parse_error'
>  helloworld.c: In function 'new_pad':
>  helloworld.c:53: warning: passing argument 1 of 'gst_object_unref' from
> incompatible pointer type
>  helloworld.c: In function 'main':
>  helloworld.c:87: warning: implicit declaration of function
> 'gst_bus_add_watch'
>  helloworld.c:87: warning: implicit declaration of function
> 'gst_pipeline_get_bus'
>
>  The example is specifically for gstreamer-0.10 but I figured a hello world
> example should work equally well on FC4.

  The answer is you figured wrong :) API between 0.8 and 0.10 changed
quite a lot, and the stated example will not work with 0.8 libraries.
I'd strongly recommend using 0.10 especially if you're starting with
gstreamer.

  Edward

>
>  Anyways, trying to work my way into gstreamer.  If anyone has seen this
> problem before I would appreciate some help.  Thanks,
>
>  Benjy
>
>
>


--
Edward Hervey
Junior developer / Fluendo S.L.
http://www.pitivi.org/


More information about the gstreamer-devel mailing list