编译cocos2dx 工程,ndk-build 报错:
miujundeMacBook-Pro:proj.android miaojun$ ndk-build
Android NDK: jni/Android.mk: Cannot find module with tag 'cocos' in import path
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
Android NDK: The following directories were searched:
Android NDK:
jni/Android.mk:211: *** Android NDK: Aborting. . Stop.
Android.mk添加:
$(call import-add-path,$(LOCAL_PATH)/../../../..)
$(call import-add-path,$(LOCAL_PATH)/../../../../external)
$(call import-add-path,$(LOCAL_PATH)/../../../../cocos)
$(call import-add-path,$(LOCAL_PATH)/../../../publish)
原文链接:https://www.f2er.com/cocos2dx/341799.html