<p>Hi there!</p>

<p>I have tried the examples on the Android tutorial - all of them worked fine. Because of my application requirements, now I need to add the <b>libav</b> plugin. As far as I've read, this plugin will allow me to convert a <i>H264</i> video into <i>raw</i> and then reproduce it in a Android media player component.</p>

<p>So this is the variable where I declare what plugins I need on my <i>Android.mk</i> file:</p>

<pre>GSTREAMER_PLUGINS := $(GSTREAMER_PLUGINS_CORE) $(GSTREAMER_PLUGINS_CODECS) $(GSTREAMER_PLUGINS_SYS) x264 <b>libav</b></pre>

<p>The target architecture is <i>armv7</i>. No matter if I compile only that plugin or if it is among others, the linker always fail. This is the error I get:</p>

<pre>C:/Users/User/AppData/Local/Android/sdk/ndk-bundle/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: conditional branch to PLT in THUMB-2 not supported yet.
libswresample/arm/audio_convert_neon.S:137: error: unexpected opcode while processing relocation R_ARM_THM_JUMP19
clang.exe: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [buildsharedlibrary_armeabi-v7a] Error 1</pre>

<p>I'm using the latest NDK version available. I've also tried to disable the <b>gold linker</b> and use the old NDK linker (<b>bfd</b>) and I get a very similar error:</p>

<pre>C:/Users/User/AndroidStudioProjects/gstreamer-android/armv7/lib/libswresample.a(audio_convert_neon.o): In function `swri_oldapi_conv_fltp_to_s16_nch_neon':
/home/slomo/Projects/gstreamer/cerbero/build/sources/android_universal/armv7/gst-libav-1.0-static-1.10/gst-libs/ext/libav/libswresample/arm/audio_convert_neon.S:137:(.text+0x186): relocation truncated to fit: R_ARM_THM_JUMP19 against symbol `swri_oldapi_conv_fltp_to_s16_2ch_neon' defined in .text section in C:/Users/Ivan.Perez/AndroidStudioProjects/gstreamer-android/armv7/lib/libswresample.a(audio_convert_neon.o)
clang.exe: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [buildsharedlibrary_armeabi-v7a] Error 1</pre>

<p>Is there anything I can do in order to build my application with that plugin?</p>

<p>Thank you very much.</p>
<p>Kind regards</p>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Error-linking-libav-plugin-on-Android-tp4680979.html">Error linking "libav" plugin on Android</a><br/>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>