Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Updated NDK to r9c from r8e and got error "No rule to make target"

I have updated NDK to r9c from r8e and got error No rule to make target

make.exe: *** No rule to make target `/bullet/src/LinearMath/btAlignedAllocator.
cpp', needed by `obj/local/armeabi/objs/main_soft//bullet/src/LinearMath/btAlign
edAllocator.o'.  Stop.

Previously my configure files were Ok and I just switched NDK version.

Android.mk line that adds that file. Files added before that line were Ok.

LOCAL_SRC_FILES := src/maincode.cpp 
LOCAL_SRC_FILES += src/data/Friends.cpp 
LOCAL_SRC_FILES += $(addprefix /bullet/src/LinearMath/, $(notdir $(wildcard $(LOCAL_PATH)/bullet/src/LinearMath/*.cpp))) 
like image 939
Max Avatar asked Nov 02 '22 07:11

Max


1 Answers

Your other files start without slash. Try

LOCAL_SRC_FILES += $(addprefix bullet/src/LinearMath/, $(notdir $(wildcard $(LOCAL_PATH)/bullet/src/LinearMath/*.cpp)))
like image 130
Tema Avatar answered Nov 15 '22 04:11

Tema