我正在尝试集成静态库libAT_int.a
我已成功将其集成到iOS应用程序中。
lipo -info libAT_int.a 胖文件中的体系结构:libAT_int.a是:armv6 armv7
但是当我将它与Android NDK集成时。我在ndk构建期间遇到错误 错误:jni / libAT_int.a:1:1:无效字符
Android.mk有以下内容:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := AT
ifeq ($(APP_ABI), armeabi-v7a)
LOCAL_SRC_FILES := libAT_int.a
else
LOCAL_SRC_FILES := libAT_int.a
endif
LOCAL_CPP_FEATURES += rtti exceptions
LOCAL_CPP_EXTENSION := .cpp .h
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := MusicSDK
LOCAL_SRC_FILES := MusicSDK.cpp
LOCAL_CPP_FEATURES += rtti exceptions
LOCAL_CPP_EXTENSION := .cpp .h
LOCAL_STATIC_LIBRARIES := AT
include $(BUILD_SHARED_LIBRARY)
答案 0 :(得分:0)
在为Android构建时,您无法使用为iOS构建的静态库,您需要专门为Android构建的静态库。