我明白了
Android NDK: ERROR:src/main/jni/Android.mk:Cortex: The LOCAL_SRC_FILES
for a prebuilt library should only contain one item
/Users/peterchappy/Library/Android/ndk/build/core/prebuilt-library.mk:28:
*** missing separator. Stop.
当我运行ndk构建时。我不知道是什么问题。任何帮助都将不胜感激。
Android.mk系统
LOCAL_PATH := $(call my-dir)
# static library info
LOCAL_MODULE := Cortex
LOCAL_MODULE_FILENAME := CortexLibrary-i386
LOCAL_EXPORT_C_INCLUDES := ../prebuild/include
include $(PREBUILT_STATIC_LIBRARY)
# wrapper info
include $(CLEAR_VARS)
LOCAL_C_INCLUDES += ../prebuild/include
LOCAL_MODULE := wrapper
LOCAL_SRC_FILES := wrapper.c
LOCAL_STATIC_LIBRARIES := libYourLibrary
include $(BUILD_SHARED_LIBRARY)
应用程序.mk
APP_STL := gnustl_static
APP_PLATFORM := android-8
APP_BUILD_SCRIPT := Android.mk
最佳答案
你好像失踪了:
LOCAL_SRC_FILES := yourmodule.a
之前:
include $(PREBUILT_STATIC_LIBRARY)
在prebuild-library.mk中,您可以看到:
# Check that LOCAL_SRC_FILES contains only paths to shared libraries
ifneq ($(words $(LOCAL_SRC_FILES)),1)
$(call __ndk_info,ERROR:$(LOCAL_MAKEFILE):$(LOCAL_MODULE): The LOCAL_SRC_FILES for a prebuilt static library should only contain one item))
$(call __ndk_error,Aborting)
endif
或者它被设置为一些无效值,您应该添加:
include $(CLEAR_VARS)
刚好在…之后:
# static library info
关于android - ndk-build错误prebuilt-library.mk:28:***缺少分隔符。停止,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/30221216/