我意识到之前已经问过这个问题,但没有答案能够解决我的问题.
我正在尝试构建一个随NDK提供的示例Android应用程序,其中包含以下Android.mk文件:
LOCAL_PATH := $(call my-dir) MY_PATH := $(LOCAL_PATH) include $(call all-subdir-makefiles) include $(CLEAR_VARS) LOCAL_PATH := $(MY_PATH) LOCAL_MODULE := native-activity LOCAL_SRC_FILES := main.c LOCAL_LDLIBS := -llog -landroid -lEGL -lGLESv1_CM LOCAL_STATIC_LIBRARIES := android_native_app_glue include $(BUILD_SHARED_LIBRARY) $(call import-module,android/native_app_glue)
当我构建我的项目时,我得到以下错误:
**** Build of configuration Default for project NativeActivity **** /Users/Jono/Documents/Development/Android Development/android-ndk-r9c/ndk-build all usage: dirname path make: /Users/Jono/build/core/build-local.mk: No such file or directory make: *** No rule to make target `/Users/Jono/build/core/build-local.mk'. Stop. **** Build Finished ****
问题是它在我的根目录中寻找构建文件,但我不确定它在做什么,它在寻找什么文件,它应该在哪里查找,然后我应该做些什么来修复它.