dynamically register elements from a .so file

Jacob S jacobhameiri at gmail.com
Wed Nov 5 03:53:53 PST 2014


I am trying to load libgstx264.so using gst_plugin_load_file.

I copied libx264.so and libgstx264.so to the same directory where my
process is located.

when I call gst_plugin_load_file("./libgstx264.so", &error); I get this
error:
Could not load libgstx264 file: Opening module failed: Cannot load library:
soinfo_link_image(linker.cpp:1673): could not load library
"libgstpbutils-1.0.so.0" needed by "libgstx264.so"; caused by
load_library(linker.cpp:771): library "libgstpbutils-1.0.so.0" not found

Isnt libgstpbutils-1.0.so.0" supposed to be loaded already by the app ? how
do I load it manually ?

what am I doing wrong here ?

2014-11-05 9:58 GMT+02:00 Sebastian Dröge <sebastian at centricular.com>:

> On Di, 2014-11-04 at 22:46 +0200, Jacob S wrote:
> > How do I dynamically register elements that are on a .so/dll file that my
> > app is not linked to ?
> > These are optional elements and I want to be able to add them at
> run-time.
>
> You can call gst_plugin_load_file() with the path and filename of
> the .so file, or gst_registry_add_path() with a path to load all the
> plugins in there.
>
> --
> Sebastian Dröge, Centricular Ltd · http://www.centricular.com
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20141105/fa6ad5bd/attachment-0001.html>


More information about the gstreamer-devel mailing list