Compilation Error with NDK 6 & 7

Mark Howell mark-sub1 at hypgnosys.org
Fri Dec 9 10:40:12 PST 2011


On 12/9/2011 7:45 AM, 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
>
>
> 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
>

Make sure you copied the libs like libmedia.so down from your target 
device into the right platforms/android-* for your build setup. I am 
using NDK r6b and copied the libs into 
android-ndk-r6b/platforms/android-9 for my setup. See the link that 
Stefan sent in a recent msg for what libs you need.

I haven't successfully built with NDK r7 yet either, so I reverted to 
r6b just to keep moving.

Mark.


More information about the gstreamer-android mailing list