Dynamically linking plugin in GStreamer on Android

Bruce Tsai wagamama.tsai at gmail.com
Mon Jan 20 02:19:29 PST 2014


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.


Yi-Lung (Bruce) Tsai


On Mon, Jan 20, 2014 at 5:16 PM, Sebastian Dröge
<sebastian at centricular.com>wrote:

> On Mo, 2014-01-20 at 16:52 +0800, Bruce Tsai wrote:
> > Hi all,
> >
> > I know there is dynamic linker limit on Android so all plugins are static
> > linked in a single shared library.
> > But is it still do-able to dynamically link custom plugins on Android?
> > If so, how do I get to it?
> > I built a plugin and tested it on Linux.
> > Now I want to use it on Android with dynamic link but don't know how.
> > Could someone give me a hint?
> > Thank you very much.
>
> Set GST_PLUGIN_PATH to the appropriate directory in your app, then it
> should work. However that plugin must not be dynamically linked to any
> GStreamer or related libraries, as all those symbols are in
> libgstreamer_android.so.
>
> --
> 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/20140120/ed7d64e0/attachment.html>


More information about the gstreamer-android mailing list