您的位置:首页 > 移动开发 > Cocos引擎

cocos2d-x android 环境搭建

2013-03-07 14:33 113 查看
cocos2d-x android 环境搭建
http://www.raywenderlich.com/11283/cocos2d-x-for-ios-and-android-getting-started
##修改文件权限:

chmod 777 filename

##编译错误解决:

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.

解决方案为:

在项目proj.android\jni\Android.mk(E:\Research\cocos2d\cocos2d-2.0-x-2.0.2\GameThieves\proj.android\jni\Android.mk)文件中添加路径:

$(call import-add-path, E:\Research\cocos2d\cocos2d-2.0-x-2.0.2)\

$(call import-add-path, E:\Research\cocos2d\cocos2d-2.0-x-2.0.2\cocos2dx\platform\third_party\android\prebuilt)\


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

$(call import-module,cocos2dx) \

$(call import-module,extensions)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: