我试图在我的本机代码中使用来自https://ccrma.stanford.edu/software/stk/的库,并且在编译期间出现错误:未定义的引用(我的外部库的错误链接)它有什么问题?
LOCAL_PATH := $(call my-dir)
include $(call all-subdir-makefiles)
include $(CLEAR_VARS)
LOCAL_MODULE := libstk
LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/libstk.a
#LOCAL_EXPORT_C_INCLUDES :=$(LOCAL_PATH)/stk
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := native-audio-jni
#LOCAL_SRC_FILES := native-audio-jni.cpp
LOCAL_SRC_FILES := \
native-audio-jni.cpp\
sqlite3.c\
mysqlite.h
LOCAL_STATIC_LIBRARIES := libstk
# for native audio
LOCAL_LDLIBS += -lOpenSLES
# for logging
LOCAL_LDLIBS += -llog
# for native asset manager
LOCAL_LDLIBS += -landroid
include $(BUILD_SHARED_LIBRARY)
谢谢