link error(glib) of gstreamer in android
jojo
rjiejie at gmail.com
Tue Jul 2 01:33:26 PDT 2013
Hi,
My environment is following:
SDK: 4.1.2 (API 16)
NDK: android-ndk-r8e
My application is built on glib, and i use gstreamer or gstreamer-sdk to link/compile some glib code.
I directly reference some static libraries of glib like following instructions(some include path is not listed):
GSTREAMER_SDK_ROOT_ANDROID := /opt/gstreamer-sdk-android-arm-release-2013.6
or
GSTREAMER_SDK_ROOT_ANDROID := /opt/gstreamer-1.0-android-arm-1.0.7-release
app_objs := $(GSTREAMER_SDK_ROOT_ANDROID)/lib/libintl.a \
$(GSTREAMER_SDK_ROOT_ANDROID)/lib/libgio-2.0.a \
$(GSTREAMER_SDK_ROOT_ANDROID)/lib/libgobject-2.0.a \
$(GSTREAMER_SDK_ROOT_ANDROID)/lib/libgthread-2.0.a \
$(GSTREAMER_SDK_ROOT_ANDROID)/lib/libgmodule-2.0.a \
$(GSTREAMER_SDK_ROOT_ANDROID)/lib/libglib-2.0.a \
$(GSTREAMER_SDK_ROOT_ANDROID)/lib/libiconv.a \
the error is report by following (should be pthread issue):
/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libintl.a(bindtextdom.o): in function set_binding_values.part.0:./bindtextdom.c:313: error: undefined reference to 'pthread_rwlock_unlock'
/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libintl.a(bindtextdom.o): in function libintl_bindtextdomain:./bindtextdom.c:92: error: undefined reference to 'pthread_rwlock_wrlock'
/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libintl.a(bindtextdom.o): in function libintl_bind_textdomain_codeset:./bindtextdom.c:92: error: undefined reference to 'pthread_rwlock_wrlock'
/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libintl.a(loadmsgcat.o): in function _nl_load_domain:./loadmsgcat.c:1277: error: undefined reference to 'pthread_rwlock_init'
/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libintl.a(textdomain.o): in function libintl_textdomain:./textdomain.c:73: error: undefined reference to 'pthread_rwlock_wrlock'
/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libintl.a(textdomain.o): in function libintl_textdomain:./textdomain.c:117: error: undefined reference to 'pthread_rwlock_unlock'
/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libintl.a(dcigettext.o): in function _nl_find_msg:./dcigettext.c:1011: error: undefined reference to 'pthread_rwlock_rdlock'
/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libintl.a(dcigettext.o): in function _nl_find_msg:./dcigettext.c:1028: error: undefined reference to 'pthread_rwlock_unlock'
/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libintl.a(dcigettext.o): in function _nl_find_msg:./dcigettext.c:1033: error: undefined reference to 'pthread_rwlock_wrlock'
/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libintl.a(dcigettext.o): in function _nl_find_msg:./dcigettext.c:1063: error: undefined reference to 'pthread_rwlock_unlock'
/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libintl.a(dcigettext.o): in function libintl_dcigettext:./dcigettext.c:530: error: undefined reference to 'pthread_rwlock_rdlock'
/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libintl.a(finddomain.o): in function _nl_find_domain:./finddomain.c:87: error: undefined reference to 'pthread_rwlock_rdlock'
/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libglib-2.0.a(libglib_2_0_la-ggettext.o): in function g_dgettext:ggettext.c:402: error: undefined reference to 'libintl_dgettext'
/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libglib-2.0.a(libglib_2_0_la-ggettext.o): in function g_dngettext:ggettext.c:460: error: undefined reference to 'libintl_dngettext'
/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libglib-2.0.a(libglib_2_0_la-gwakeup.o): in function g_wakeup_new:gwakeup.c:148: error: undefined reference to 'eventfd'
/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libglib-2.0.a(libglib_2_0_la-glib-unix.o): in function g_unix_open_pipe:glib-unix.c:102: error: undefined reference to 'pipe2'
/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libglib-2.0.a(libglib_2_0_la-gthread-posix.o): in function g_rw_lock_impl_new:gthread-posix.c:434: error: undefined reference to 'pthread_rwlock_init'
/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libglib-2.0.a(libglib_2_0_la-gthread-posix.o): in function g_rw_lock_get_impl:gthread-posix.c:443: error: undefined reference to 'pthread_rwlock_destroy'
/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libglib-2.0.a(libglib_2_0_la-gthread-posix.o): in function g_rw_lock_clear:gthread-posix.c:443: error: undefined reference to 'pthread_rwlock_destroy'
/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libglib-2.0.a(libglib_2_0_la-gthread-posix.o): in function g_rw_lock_writer_trylock:gthread-posix.c:551: error: undefined reference to 'pthread_rwlock_trywrlock'
/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libglib-2.0.a(libglib_2_0_la-gthread-posix.o): in function g_rw_lock_reader_lock:gthread-posix.c:590: error: undefined reference to 'pthread_rwlock_rdlock'
/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libglib-2.0.a(libglib_2_0_la-gthread-posix.o): in function g_rw_lock_reader_trylock:gthread-posix.c:608: error: undefined reference to 'pthread_rwlock_tryrdlock'
Thanks,
- Jojo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130702/fd4afdea/attachment-0001.html>
More information about the gstreamer-devel
mailing list