<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><br>
&gt;<br>
&gt; I&#39;m just running through the plugin writer&#39;s guide (<br>
<br>
</div><div class="Ih2E3d">&gt; &nbsp;gcc -DHAVE_CONFIG_H -I. -I. -I.. -pthread -I/usr/include/gstreamer-0.10<br>
&gt; -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2<br>
&gt; -Wall -Werror -g -O2 -MT libgstplugin_la-gstexamplefilter.lo -MD -MP -MF<br>
 &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^<br>
 &nbsp; &nbsp; &nbsp; &nbsp;(!)<br>
<br>
&gt; .deps/libgstplugin_la-gstexamplefilter.Tpo -c gstexamplefilter.c &nbsp;-fPIC<br>
&gt; -DPIC -o .libs/libgstplugin_la-gstexamplefilter.o<br>
&gt; cc1: warnings being treated as errors<br>
&gt; gstexamplefilter.c: In function &#39;examplefilter_init&#39;:<br>
&gt; gstexamplefilter.c:254: warning: passing argument 1 of<br>
&gt; &#39;gst_element_register&#39; from incompatible pointer type<br>
&gt; gstexamplefilter.c: At top level:<br>
&gt; gstexamplefilter.c:261: warning: initialization from incompatible pointer<br>
&gt; type<br>
<br>
</div>You&#39;re building with -Werror (see man gcc), which treats all warnings as<br>
errors. First arg of gst_element_register should be GstPlugin<br>
not GstExampleFilter.</blockquote><div>&nbsp;<br><br>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.&nbsp; Also, I&#39;m just using the default compiler flags, so by default, the generated code doesn&#39;t compile (at least on my system).<br>
<br>So, does this boilerplate generation stuff need updating? Does anyone know if many people use it? I would think it&#39;s the first place to start for anyone wanting to write their own plugin...<br><br>One more thing - it wasn&#39;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.&nbsp; 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).<br>
<br>I guess I&#39;m just coming from the point of view of someone who is lazy (a typical programmer) and wants everything to work &quot;out-of-the-box&quot; so that they can quickly get started on what they need to do.<br>
<br><br>Jono<br></div></div>