Dynamically linking plugin in GStreamer on Android

Bruce Tsai wagamama.tsai at gmail.com
Tue Jan 21 17:05:37 PST 2014


Thanks Sebastian.

So my plan is putting my plugin in the app and build the plugin along with
the app.
And let my plugin link to libgstreamer_android.so.
In this case, whether do I need to set "GST_PLUGIN_PATH" to let GStreamer
scan my app's shared lib?

Yi-Lung (Bruce) Tsai


On Tue, Jan 21, 2014 at 4:41 PM, Sebastian Dröge
<sebastian at centricular.com>wrote:

> On Mo, 2014-01-20 at 18:19 +0800, Bruce Tsai wrote:
> > Hi Sebastian,
> >
> > Thanks for your quick reply.
> > But I got message of no suitable plugins found.
> >
> > Here is my building procedures:
> > 1. Develop a new plugin, based on gst-template/gst-plugin
> > 2. In order to build appropriate shared libraries on Android, I enter
> shell
> > environment by "cerbero -c config/cross-android.cbc shell"
> > 3. Then I go to gst-template/gst-plugin and build my plugin
> > 4. Copy so file into folder "assets/test" in my app
> > 5. Set environment path by setenv("GST_PLUGIN_PATH", "assets/test", 1);
> > 6. Use ndk-build to build the app
> > 7. Run app but get error messages
> >
> > Hope I did not miss something.
>
> That way you will link your plugin against libgstreamer-1.0.so and
> others. You should not do that and instead link them against
> libgstreamer_android.so or no GStreamer library at all.
>
> That will need some build system customisations for your plugin.
>
> --
> Sebastian Dröge, Centricular Ltd - http://www.centricular.com
> Expertise, Straight from the Source
>
> _______________________________________________
> gstreamer-android mailing list
> gstreamer-android at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-android
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20140122/e459fe48/attachment.html>


More information about the gstreamer-android mailing list