linkage problems building gstreamer tutorials

Nicolas Dufresne nicolas.dufresne at collabora.com
Tue Nov 4 19:42:56 PST 2014


Hi,

Android broke their NDK ABI in NDK r10c by removing bunch or symbols in 
their libc. See their release notes. To build against 1.4.3, you will 
need to use a previous NDK, the default build NDK is currently set to 
r9d which I have verified works. Future release of GStreamer will be 
base on r10c+, hence won't be using these symbols.

Nicolas

Le 2014-11-04 14:16, StasLatGTTT a écrit :
> Hello
> I try to build ndroid-tutorial-1, provided with gstreamer sdk. But when I
> use ndk-build, building stops with such a log:
>
> GStreamer      : [GEN] => gst-build/gstreamer_android.c
> GStreamer      : [COMPILE] => gst-build/gstreamer_android.c
> GStreamer      : [LINK] => gst-build/libgstreamer_android.so
> /home/staslatgttt/work/android-ndk-r10c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold:
> /home/staslatgttt/work/gstreamer-sdk-android-arm-debug-2013.6//lib/libgstreamer-0.10.a(libgstparse_la-lex.priv_gst_parse_yy.o):
> in function priv_gst_parse_yylex:lex.priv_gst_parse_yy.c:1598: error:
> undefined reference to '__srget'
> /home/staslatgttt/work/android-ndk-r10c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold:
> /home/staslatgttt/work/gstreamer-sdk-android-arm-debug-2013.6//lib/libglib-2.0.a(libcharset_la-localcharset.o):
> in function _g_locale_get_charset_aliases:localcharset.c:158: error:
> undefined reference to '__srget'
> /home/staslatgttt/work/android-ndk-r10c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold:
> /home/staslatgttt/work/gstreamer-sdk-android-arm-debug-2013.6//lib/libglib-2.0.a(libcharset_la-localcharset.o):
> in function _g_locale_get_charset_aliases:localcharset.c:167: error:
> undefined reference to '__srget'
> /home/staslatgttt/work/android-ndk-r10c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold:
> /home/staslatgttt/work/gstreamer-sdk-android-arm-debug-2013.6//lib/libintl.a(localcharset.o):
> in function locale_charset:./localcharset.c:195: error: undefined reference
> to '__srget'
> /home/staslatgttt/work/android-ndk-r10c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold:
> /home/staslatgttt/work/gstreamer-sdk-android-arm-debug-2013.6//lib/libintl.a(log.o):
> in function
> __sputc:/home/slomo/Projects/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.7/include-fixed/stdio.h:376:
> error: undefined reference to '__swbuf'
> collect2: ld returned 1 exit status
> make: *** [buildsharedlibrary] Error 1
>
> I tried to build project both using Eclipse and from terminal, but i always
> meet this problem. Can anyone explain me, what happens there?
>
> I work with Fedora 20
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/linkage-problems-building-gstreamer-tutorials-tp4669371.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list