Building GStreamer with the NDK : cannot find -lmedia

saurabh dixit saurabh.dixit at nexbits.com
Thu Mar 15 08:27:19 PDT 2012


Thanks Reynaldo for the reply , but i have already copied all the .so's in
the given path.

Is NDK HOME is the location of installed (copied from android developer
site) NDK or is it inside the downloded android source code for 2.3.4_r1.
*"Android headers for your target device's OS version. We are bundling
2.3.3_r1 headers but you are welcome to try with other versions and report
back your results. This is a requirement for building the flingersinks". *

where we are using the android headers? Is it necessary to use android
headers to build gstreamer using NDK .How to include them?

previosly i was getting error

StaticLibrary  : libstdc++.a
SharedLibrary  : libgstaudioflinger.so
/path/to/gstreamer-proj/
ndk/android-ndk-r6b/
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: ***
[<path/to/gstreamer_ndk_bundle>/obj/local/armeabi/libgstaudioflinger.so]
Error 1


which i have resolved by making a soft link for libmedia.so ->
../../../../../platforms/android-3/arch-arm/usr/lib/libmedia.so.
But now i am getting another error

ndk/android-ndk-r6b/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
00004198
Install        : libgstaudioconvert.so => libs/armeabi/libgstaudioconvert.so
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++
SharedLibrary  : libgstaudioflinger.so
/path/to/gstreamer-proj/ndk/android-ndk-r6b/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 -lutils
collect2: ld returned 1 exit status

make: ***
[/home/saurabh/gstreamer-proj/gstreamer-bundle/gstreamer_ndk_bundle/obj/local/armeabi/libgstaudioflinger.so]
Error 1

please help me in resolving this issue.

regards
saurabh dixit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20120315/c4467ed3/attachment.html>


More information about the gstreamer-android mailing list