<div dir="ltr"><div>Hello<br><br>Similar to your message, a colleague and I are trying to add a custom plugin to the gstreamer-sdk for Android.<br>- we built with success the sdk (package gstreamer-sdk) with cerbero and cross-android.cbc on Ubuntu1204 (we had to remove the package "video-editing" in gstreamer-sdk.package since the gnonlin source code could not be correctly fetch by git today (could not understand why))<br>
</div><div>- we added a directory with our code in the plugins-bad/gst directory with is Makefile.am.<br></div><div>- we added a static recipe in the recipe folder and added our recipe in the plugin-bad recipe<br><br></div>
<div>Anyway we are still not done and we we are a bit stuck on how to progress. Any hint?<br><br></div><div>Thanks<br><br></div><code class=""></code></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/3/13  <span dir="ltr"><<a href="mailto:stic@free.fr" target="_blank">stic@free.fr</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I tried using -DGST_PLUGIN_STATIC_BUILD in CFLAGS, and using GST_PLUGIN_DEFINE2.<br>
But it still does not work for me, always same error when trying to use the plugin: undefined reference to 'gst_plugin_testplugin_register'.<br>
Do I have to build the plugin using Cerbero or can I compile plugin with GST SDK release ?<br>
<br>
Thank you<br>
<br>
El 12/03/2013 21:23, "Andoni Morales" < <a href="mailto:ylatuya@gmail.com">ylatuya@gmail.com</a> > escribió:<br>
><br>
><br>
> El 11/03/2013 12:10, < <a href="mailto:stic@free.fr">stic@free.fr</a> > escribió:<br>
><br>
> ><br>
> > Hello,<br>
> ><br>
> > in the case I am trying to create a custom gstreamer plugin, how can I provide it to gstreamer in Android app ?<br>
> > I didn't find how to provide a custom plugin to Android gstreamer. Gstreamer finds only plugins already available in the GST SDK.<br>
> > I even tried to add the static library of custom plugin in the same path as the standard plugins (GSTREAMER_SDK_ROOT/lib/gstreamer-0.10/static) but I always have the following message when trying to provide the plugin : error: undefined reference to 'gst_plugin_testplugin_register'<br>

> > (where testplugin is the name of my plugin)<br>
> ><br>
> You will also need to create a libtool library for it in this directory (eg: <a href="http://libgsttestplugin.la" target="_blank">libgsttestplugin.la</a> ) to help the linker find and link your plugin. And you must compile your plugin with -DGST_PLUGIN_STATIC_BUILD in your CFLAGS.<br>

<br>
And use GST_PLUGIN_DEFINE2. It is something we should document :)<br>
Andoni<br>
> Andoni<br>
><br>
> > Thanks a lot for any help :)<br>
> > _______________________________________________<br>
> > gstreamer-android mailing list<br>
> > <a href="mailto:gstreamer-android@lists.freedesktop.org">gstreamer-android@lists.freedesktop.org</a><br>
> > <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-android" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-android</a><br>
<br>
_______________________________________________<br>
gstreamer-android mailing list<br>
<a href="mailto:gstreamer-android@lists.freedesktop.org">gstreamer-android@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-android" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-android</a><br>
_______________________________________________<br>
gstreamer-android mailing list<br>
<a href="mailto:gstreamer-android@lists.freedesktop.org">gstreamer-android@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-android" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-android</a><br>
</blockquote></div><br></div>