cocos2d-x Eclipse编译

编译出现如下错误:

Android NDK: jni/Android.mk: Cannot find module with tag 'CocosDenshion/android' 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:19: *** Android NDK: Aborting.    .  Stop.

解决方法

$(call import-add-path, /cygdrive/f/cocos2d/cocos2d-x)\

$(call import-add-path, /cygdrive/f/cocos2d/cocos2d-x/platform/third_party/android/prebuilt)\



$(call import-module,CocosDenshion/android) \
$(call import-module,cocos2dx) \
$(call import-module,extensions)

路径按照实际情况来设置

你可能感兴趣的:(cocos2d-x,Eclipse编译)