Cocos2dx make.exe compile error



How to solve this kind of error?


make.exe: *** No rule to make target `jni/../../../Classes/HelloWorldScene.cpp', needed by `obj/local/armeabi/objs-debug/cocos2dcpp_shared/__/__/__/Classes/HelloWorldScene.o'.  Stop.



Open explorer and find below path.


[Project]\proj.android-studio\app\jni



open Android.mk file.


Search this code 

LOCAL_SRC_FILES := hellocpp/main.cpp \

../../Classes/AppDelegate.cpp \

../../Classes/HelloWorldScene.cpp


Replace like this.

FILE_LIST := $(wildcard \

$(LOCAL_PATH)/../../../Classes/*.cpp)

LOCAL_SRC_FILES := hellocpp/main.cpp \

$(FILE_LIST:$(LOCAL_PATH)/%=%)



All is done.


Let's compile now.