Specify path for new plugin

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Specify path for new plugin

pchaurasia
Folks,

I am looking to use an example plugin in gst-app. In order to specify path I
am using -

GstRegistry *registry;
registry = gst_registry_get_default();
gst_registry_add_path(registry, directory);


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 ...

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

Do I need to build libs again from sources ?

Thanks



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Specify path for new plugin

Tim Müller
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@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/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Specify path for new plugin

pchaurasia
Thanks Tim, I was able to move on with GST_PLUGIN_PATH.

Thanks



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel