Hi, all
I will build a shared library named libhello-jni.so used in jni, and it has
dependencies in other libraries, currently i have to build all the
dependencies to static libraries and let libhello-jni.so to link them, if i
build the dependencies to shared libraries the app will crash during
launching.
*My code of Android.mk:*
LOCAL_MODULE_NAME := hellojni
DEPENDENCE_LIBS := gthread-2.0 gmodule-2.0 gobject-2.0 glib-2.0
ifeq ($(BUILD_STATIC),true)
LOCAL_STATIC_LIBRARIES := $(DEPENDENCE_LIBS)
else
LOCAL_SHARED_LIBRARIES := $(DEPENDENCE_LIBS)
endif
include $(BUILD_SHARED_LIBRARY)
if i define *BUILD_STATIC* as *true*, all works well, but if i define *
BUILD_STATIC* as *false*, could not work
Could any one help me? Thanks in advance.
---------------------------------
MSN: [email protected]
twitter: gemili <http://twitter.com/gemili>
-- -Definitely, Maybe ---
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en