Specify path for new plugin

Tim Müller tim at centricular.com
Tue Sep 12 13:02:47 UTC 2017


On Tue, 2017-09-12 at 05:41 -0700, pchaurasia wrote:

Hi,

> registry = gst_registry_get_default();

This is called gst_registry_get() in GStreamer 1.x.


> However I am getting - 
> 
> /home/ubuntu/work/Internet/gst-template/gst-app/src/play.c:57:
> undefined
> reference to `gst_registry_get_default'
> /home/ubuntu/work/Internet/gst-template/gst-app/src/play.c:58:
> undefined
> reference to `gst_registry_add_path'

> Which library do I need to link for these symbols ? When I go to
> directory where gstreamer-1.0 is installed and look for aforesaid
> symbols in all *.so I do not find anything ...

You need to link to libgstreamer-1.0.so.

This will be in the library directory (e.g. /usr/lib/aarch64-linux-gnu) 
*not* in the directory where GStreamer plugins are in
(/usr/lib/aarch64-linux-gnu/gstreamer-1.0).


> ubuntu at tegra-ubuntu:/usr/lib/aarch64-linux-gnu/gstreamer-1.0$ objdump
> -D
> *.so | grep gst_registry_get_default

Wrong directory. This only contains GStreamer plugins, libs are one dir
up.

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com

Join us at the GStreamer Conference!
21-22 October 2017 in Prague, Czech Republic
http://gstreamer.freedesktop.org/conference/


More information about the gstreamer-devel mailing list