[gst-devel] sample plugin

Tim Müller t.i.m at zen.co.uk
Mon Oct 29 11:47:01 CET 2007


On Mon, 2007-10-29 at 14:39 +0530, Vinod Nanjaiah wrote:

> with the plugin-template code that Sameer shared, I am able to
>  successfully run 'autogen.sh' and 'make'. After this, I ran
>  ./configure, make and make install in gst-plugin directory. But I
>  still don't see the sample plugin (already ran "make_element
>  ExamplePlugin")
> 
> Are there any more steps that need to be run before I can find exampleplugin.

Make sure the newly-created gstexampleplugin.c and gstexampleplugin.h
files are in the src/ directory, ie. gst-template/gst-plugin/src/.

You will then also need to modify gst-plugin/src/Makefile.am a bit, like
this:

diff -u -p -r1.7 Makefile.am
--- Makefile.am 23 Jan 2007 16:01:13 -0000      1.7
+++ Makefile.am 29 Oct 2007 10:44:10 -0000
@@ -3,7 +3,7 @@

##############################################################################
 # change libgstplugin.la to something more suitable, e.g.
libmysomething.la  #

##############################################################################
-plugin_LTLIBRARIES = libgstplugin.la
+plugin_LTLIBRARIES = libgstplugin.la libgstexampleplugin.la
 

##############################################################################
 # for the next set of variables, rename the prefix if you renamed
the .la,   #
@@ -22,5 +22,11 @@ libgstplugin_la_CFLAGS = $(GST_CFLAGS)
 libgstplugin_la_LIBADD = $(GST_LIBS)
 libgstplugin_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
 
+libgstexampleplugin_la_SOURCES = gstexampleplugin.c gstexampleplugin.h
+libgstexampleplugin_la_CFLAGS = $(GST_CFLAGS)
+libgstexampleplugin_la_LIBADD = $(GST_LIBS)
+libgstexampleplugin_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
+
 # headers we need but don't want installed
-noinst_HEADERS = gstplugin.h
+noinst_HEADERS = gstplugin.h gstexampleplugin.h


Alternatively, why not just start work with the existing gstplugin.c or
gsttransform.c and worry about renaming the files later?

Hope this helps.

 Cheers
  -Tim






More information about the gstreamer-devel mailing list