Adding New GStreamer Plugin for Android

Sebastian Dröge sebastian at centricular.com
Wed May 25 06:33:15 UTC 2016


On Mo, 2016-05-23 at 06:03 -0700, kkaran2010 wrote:
> Hi Sebastian,
> 
> I have added #define GST_PLUGIN_BUILD_STATIC in each .c file in
> gstreamer-imx but still getting the same error. :(
> 
> 
> Android/android-ndk-r9b/toolchains/arm-linux-androideabi-
> 4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-
> androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold:
> gst-build-armeabi/gstreamer_android.o: in function
> gst_android_register_static_plugins:gstreamer_android.c(.text.gst_and
> roid_register_static_plugins+0x1cc):
> error: undefined reference to 'gst_plugin_imxvpu_register'
> collect2: ld returned 1 exit status
> make: *** [buildsharedlibrary_armeabi] Error 1
> 
> 
> Any other option that I can try?

Check how the plugin is compiled, what functions it is exporting, etc.
It should export a gst_plugin_imxvpu_register() if it is compiled with
that #define and uses GST_PLUGIN_DEFINE().

Also check if the plugin .a file is actually linked in there, e.g. by
running ndk-build with LIBTOOL_DEBUG=1

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

-------------- 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: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160525/d74b9b29/attachment-0001.sig>


More information about the gstreamer-devel mailing list