Android ndk no rule to make target

I understand that this question was asked before, but none of the answers could solve my problem.

I am trying to create an example Android application for NDK that has the following Android.mk file:

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) 

When I create my project, I get the following error:

 **** 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 **** 

The problem is that he is looking for assembly files in my root directory, but I'm not quite sure what he is doing, what files he is looking for, where he should look, and then what should I do to fix it.

+6
source share
2 answers

You should not use a space in your path to NDK. Change the name of the "Android Development" folder to something without spaces, i.e. "AndroidDevelopment".

+7
source

NDK can become very unhappy if directory names have spaces like your Android Development . Just rename the directory to Android_Development and remember to update your ADT settings.

+2
source

All Articles