It seems that whenever I add a new .cpp file in the class folder. I have to modify the Android.mk file to let the NDK script know that there’s a new .cpp file and they need to compile it as well.
After some time my Android.mk file would look like:
I am wondering is there a way for me to appoint a specific folder so that no matter how many .cpp files I have added into that folder, the NDK script would know and compile them all. So that I don’t have to add each .cpp file one by one.
hi, i m getting this error when i run my app on eclipse for android “make: * No rule to make target `jni_‘/testcpp/main.cpp’, needed by `obj/local/armeabi/objs-debug/testcpp_shared/testcpp/main.o’.”
what’s wrong with my mk file?
here is my mk file :
TOP_LOCAL_PATH :=$(call my-dir)
include $(call all-subdir-makefiles)
LOCAL_PATH := $(TOP_LOCAL_PATH)