Hi All,
I am trying to build the android ICS (linaro_android_4.0.4) for my panda board. I bumped into the following compiling errors: target SharedLib: libOpenSLES (out/target/product/panda/obj/SHARED_LIBRARIES/libOpenSLES_intermediates/LINKED/libOpenSLES.so) system/media/wilhelm/src/assert.c:24: error: undefined reference to '__android_log_assert' system/media/wilhelm/src/assert.c:31: error: undefined reference to '__android_log_assert'
The following is the fix for the linking errors of libOpenSLES and libOpenMAXAL: diff --git a/wilhelm/src/Android.mk b/wilhelm/src/Android.mk index 6da321a..94c99a5 100644 --- a/wilhelm/src/Android.mk +++ b/wilhelm/src/Android.mk @@ -207,7 +207,7 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE_TAGS := optional LOCAL_CFLAGS += -x c++ -DLI_API= -fvisibility=hidden -UNDEBUG \ -DSL_API='__attribute__((visibility("default")))' -LOCAL_SHARED_LIBRARIES := libwilhelm +LOCAL_SHARED_LIBRARIES := libwilhelm liblog include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS) @@ -222,5 +222,5 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE_TAGS := optional LOCAL_CFLAGS += -x c++ -DLI_API= -fvisibility=hidden -UNDEBUG \ -DXA_API='__attribute__((visibility("default")))' -LOCAL_SHARED_LIBRARIES := libwilhelm +LOCAL_SHARED_LIBRARIES := libwilhelm liblog include $(BUILD_SHARED_LIBRARY)
linaro-android@lists.linaro.org