load a plugin which depends on another shared library.

SpicyChicken xch0929 at 126.com
Tue Jun 23 02:33:01 PDT 2015


Tim Müller wrote
> On Tue, 2015-06-23 at 00:18 -0700, SpicyChicken wrote:
> 
> Hi,
> 
>> I am using gst_plugin_load_file() to load a plugin but this plugin(so
>> library) depends on another shared library. When I test the pipeline in
>> command line, I just set LD_PELOAD and run the command as following:
>> 
>> LD_PRELOAD=
> <dependent shared library >
>  gst-launch-1.0 "pipeline description"
>> 
>> and it works.
>> 
>> 
>> Now, I am coding to implement it, I have tried to setenv of LD_PRELOAD,
>> but
>> it doesn't work.  I am not sure how to make it work, and how about the
>> API
>> gst_plugin_add_dependency_simple()
>> 
>> Any one can help? Thanks,
> 
> Why don't you just link your plugin against that shared library? (Like
> most other plugins do..)
> 
> gst_plugin_add_dependency_simple() won't help with this.
> 
> Cheers
>  -Tim
> -- 
> Tim Müller, Centricular Ltd - http://www.centricular.com
> 
> _______________________________________________
> gstreamer-devel mailing list

> gstreamer-devel at .freedesktop

> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


Because the target file system is read only. I don't have permission to
upload the dependent shared library to such as /usr/lib etc



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/load-a-plugin-which-depends-on-another-shared-library-tp4672402p4672407.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list