Link error when building Android plugin

Ole Bromose ob at dansound.dk
Sun Feb 9 05:46:55 PST 2014


On 02/08/2014 08:11 PM, Sebastian Dröge wrote:
> On Fr, 2014-02-07 at 11:11 +0100, Ole Bromose wrote:
>
>> [...]
>>
>> ./obj/local/armeabi/objs/dstreamer/gstusbsink.o: in function
>> gst_usbsink_get_type:jni/gstusbsink.c:112: error: undefined reference to
>> 'gst_audio_sink_get_type'
>>
>> I'm building the plugin together with the app.
>> I suppose that gst_audio_sink_get_type is defined by the base class
>> (GstAudioSink). Thus, it looks like GstAudioSink is not included in the
>> plugins. The included plugins are:
>>
>> GSTREAMER_PLUGINS         := $(GSTREAMER_PLUGINS_CORE)
>> $(GSTREAMER_PLUGINS_PLAYBACK) $(GSTREAMER_PLUGINS_CODECS)
>> $(GSTREAMER_PLUGINS_NET) $(GSTREAMER_PLUGINS_SYS)
>> $(GSTREAMER_PLUGINS_CODECS_RESTRICTED)
>>
>> Is it correct that GstAudioSink is missing? Ifso, how do I get it included?
> Try adding gstreamer-audio-1.0 to GSTREAMER_EXTRA_DEPS in your
> Android.mk. Without this libgstreamer_android.so might not contain
> everything you need.
Now I can register and load my plugin. Thanks!
/Ole



More information about the gstreamer-android mailing list