我有一些两个共享库和标题为他们。 我想使用前两个库中的函数构建第三个共享库。 我认为makefile有问题。当我尝试建立收到此:我的项目建立共享库链接到其他不标准共享libarary
Android NDK: /cygdrive/d/.../jni/Android.mk: Cannot find module with tag 'shared1' in import path Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ? Android NDK: The following directories were searched: Android NDK: /cygdrive/d/.../jni/Android.mk:36: *** Android NDK: Aborting. . Stop.
结构:
jni/ - myfile.c - Android.mk jni/dec/ - lot of header files jni/enc/ - lot of header files libs/armeabi/ - shared1.so - shared2.so
也Android.mk SOURSE:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/dec \
$(LOCAL_PATH)/enc
LOCAL_SHARED_LIBRARIES := shared1 shared2
LOCAL_MODULE := mylib
LOCAL_SRC_FILES := myfile.c
LOCAL_LDLIBS += -lOpenSLES
LOCAL_LDLIBS += -llog
LOCAL_LDLIBS += -landroid
include $(BUILD_SHARED_LIBRARY)
$(call import-module, shared1)
$(call import-module, shared2)
被盗从此非常感谢 – xitx 2012-03-01 17:13:44