[gst-devel] Building boilerplate plugin on ubuntu hardy

Michael Schwendt mschwendt at gmail.com
Mon Oct 27 09:23:07 CET 2008


On Mon, 27 Oct 2008 16:04:16 +0900, Jon Burgess wrote:

> Hi all,
> 
> 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.




More information about the gstreamer-devel mailing list