Compilation Error with NDK 6 & 7

Stefan Sauer ensonic at hora-obscura.de
Fri Dec 9 09:54:54 PST 2011


On 12/09/2011 04:58 PM, Mike Albren wrote:
> Hi Stefan ,
>
> I followed the instructions on this link http://gstreamer.freedesktop.org/wiki/GstreamerAndroid_InstallInstructions
>
> but It does not have any information about  "cannot find -lmedia" error
>
> if this is not the correct link , can you please point me to correct link?
Of course it has
http://gstreamer.freedesktop.org/wiki/GstreamerAndroid_InstallInstructions#Things_you_will_need
I just double checked before sending the link.

Stefan


> Thanks for help
> Mike
>
>
>
>
> ----- Original Message -----
> From: Stefan Sauer <ensonic at hora-obscura.de>
> To: gstreamer-android at lists.freedesktop.org
> Cc: 
> Sent: Friday, December 9, 2011 7:19 AM
> Subject: Re: Compilation Error with NDK 6 & 7
>
> On 12/09/2011 03:45 PM, Mike Albren wrote:
>> Hi Guys ,
>>
>>
>> Thank you for the hard work to port gstreamer to android , I am trying compile the project on Ubuntu 10.04 32 bits , I tried both NDK 6 and 7 ,
>>
>> But I am getting 2 different error messages
>>
>>
>> When I am using NDK 6 , the error is 
> Have you been going through the instructions on the wiki? It will tell
> you want to do to not get "cannot find -lmedia"
>
> Stefan
>> SharedLibrary  : libgstaudioconvert.so
>> arm-linux-androideabi-g++: unrecognized option '-no-undefined'
>> /opt/android/android-ndk-r6/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: warning: cannot find entry symbol xport-symbols-regex; defaulting to 00003108
>> Install        : libgstaudioconvert.so => libs/armeabi/libgstaudioconvert.so
>> Compile++ arm    : gstaudioflinger <= audioflinger_wrapper.cpp
>> cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
>> Compile arm    : gstaudioflinger <= gstaudioflingersink.c
>> Compile++ arm    : gstaudioflinger <= GstAndroid.cpp
>> cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
>> StaticLibrary  : libstdc++.a
>> SharedLibrary  : libgstaudioflinger.so
>> /opt/android/android-ndk-r6/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: cannot find -lmedia
>> collect2: ld returned 1 exit status
>> make: *** [/opt/gst1/obj/local/armeabi/libgstaudioflinger.so] Error 1
>>
>>
>>
>> When I am using NDK7 , the error is
>>
>>
>> arm-linux-androideabi-gcc: /opt/android/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/libgcc.a: linker input file unused because linking not done
>> arm-linux-androideabi-gcc: /opt/android/android-ndk-r7/platforms/android-9/arch-arm/usr/lib/crtend_android.o: linker input file unused because linking not done
>> Compile thumb  : x264 <= predict-a.S
>> cc1: warning: switch -mcpu=cortex-a8 conflicts with -march= switch
>> arm-linux-androideabi-gcc: /opt/android/android-ndk-r7/platforms/android-9/arch-arm/usr/lib/crtbegin_dynamic.o: linker input file unused because linking not done
>> arm-linux-androideabi-gcc: /opt/android/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/libgcc.a: linker input file unused because linking not done
>> arm-linux-androideabi-gcc: /opt/android/android-ndk-r7/platforms/android-9/arch-arm/usr/lib/crtend_android.o: linker input file unused because linking not done
>> SharedLibrary  : libx264.so
>> /opt/android/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/objs-debug/x264/common/arm/pixel-a.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
>> ./obj/local/armeabi/objs-debug/x264/common/arm/pixel-a.o: could not read symbols: Bad value
>> collect2: ld returned 1 exit status
>> make: *** [obj/local/armeabi/libx264.so] Error 1
>>
>>
>>
>> Can you please help me to solve the problem ?
>>
>> Thanks
>> Mike
>>
>> _______________________________________________
>> gstreamer-android mailing list
>> gstreamer-android at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-android
> _______________________________________________
> gstreamer-android mailing list
> gstreamer-android at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-android
>
> _______________________________________________
> gstreamer-android mailing list
> gstreamer-android at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-android



More information about the gstreamer-android mailing list