the problem of "undefined symbol: gst_base_src_get_type"

Tim-Philipp Müller t.i.m at zen.co.uk
Fri Nov 23 01:44:37 PST 2012


On Fri, 2012-11-23 at 00:40 -0800, xl2012 wrote:

Hi,

> I want to produce a plugin by gst-template.
> Then I install it ,but,when I do gst-inspect mydemosrc,
> it result that:
> libgstmydemosrc: undefined symbol: gst_base_src_get_type.
> 
> second,I find configure.ac, shows:
> PKG_CHECK_MODULES(GST_BASE, gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED,
>                   HAVE_GST_BASE=yes, HAVE_GST_BASE=no)
> 
> gstreamer-base-0.10 is including??
> 
> and the configure.log shows gstreamer-base-0.10 yes
> 
> why it results "undefined symbol: gst_base_src_get_type."??

Does your gst-plugin/src/Makefile.am have $(GST_BASE_LIBS) in
libgstmydemosrc_la_LIBADD , e.g.:

libgstmydemosrc_la_LIBADD = $(GST_LIBS) $(GST_BASE_LIBS)

?

What you can also do is to move the gstreamer-base-$GST_MAJORMINOR bit
into the

  PKG_CHECK_MODULES(GST, gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED, ...

check, just add it after the gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED
after a whitespace.

Cheers 
 -Tim



More information about the gstreamer-devel mailing list