Dynamically linking plugin in GStreamer on Android

Sebastian Dröge sebastian at centricular.com
Tue Jan 21 00:41:45 PST 2014


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20140121/ba91c770/attachment.pgp>


More information about the gstreamer-android mailing list