[gst-devel] Building boilerplate plugin on ubuntu hardy

Jon Burgess jkburges at gmail.com
Mon Oct 27 11:19:10 CET 2008


>
>
> >
> > I'm just running through the plugin writer's guide (
>
> >  gcc -DHAVE_CONFIG_H -I. -I. -I.. -pthread -I/usr/include/gstreamer-0.10
> > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> -I/usr/include/libxml2
> > -Wall -Werror -g -O2 -MT libgstplugin_la-gstexamplefilter.lo -MD -MP -MF
>        ^^^^^^^
>        (!)
>
> > .deps/libgstplugin_la-gstexamplefilter.Tpo -c gstexamplefilter.c  -fPIC
> > -DPIC -o .libs/libgstplugin_la-gstexamplefilter.o
> > cc1: warnings being treated as errors
> > gstexamplefilter.c: In function 'examplefilter_init':
> > gstexamplefilter.c:254: warning: passing argument 1 of
> > 'gst_element_register' from incompatible pointer type
> > gstexamplefilter.c: At top level:
> > gstexamplefilter.c:261: warning: initialization from incompatible pointer
> > type
>
> You're building with -Werror (see man gcc), which treats all warnings as
> errors. First arg of gst_element_register should be GstPlugin
> not GstExampleFilter.



Ok cheers - I had tried changing to GstPlugin and that was ok - but I was
hesitant to do this because I assumed the generated boilerplate code is
correct, and I had done something wrong.  Also, I'm just using the default
compiler flags, so by default, the generated code doesn't compile (at least
on my system).

So, does this boilerplate generation stuff need updating? Does anyone know
if many people use it? I would think it's the first place to start for
anyone wanting to write their own plugin...

One more thing - it wasn't clear to me, as a newbie to gstreamer and gtk,
exactly how I was to edit Makefile.am in order to build a shared object with
my plugin.  I did see either in INSTALL or somewhere like that, that I had
to edit it, but just not how (but maybe it is obvious to someone with more
experience).

I guess I'm just coming from the point of view of someone who is lazy (a
typical programmer) and wants everything to work "out-of-the-box" so that
they can quickly get started on what they need to do.


Jono
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20081027/e31180fc/attachment.htm>


More information about the gstreamer-devel mailing list