标签:android os java sp on c r javascript bs
1.下载NDK和cygwin,以及cocos2d-x-2.2.3
cygwin目录下,如本人安装目录如下D:\cygwin64\home\dong
然后用编辑器(不要用记事本,太low)点开.bash_profile,然后在最下面加上ndk路径以及cocos2dx路径
NDK_ROOT=/cygdrive/e/android/android-ndk-r9c
export NDK_ROOT
COCOS2DX_ROOT=/cygdrive/e/cocos2d-x-2.2.3
export COCOS2DX_ROOT
2.到下载好的引擎目录下
cd d:workcat/develop_tools/cocos2d-x-2.2.3/tools/project-create
执行python create_project.py -project Pomelo -package com.Fanyoy.Pomelo -language javascript
3.在cygwin环境下 进入到创建好的项目下面
cd d:workcat/develop_tools/cocos2d-x-2.2.3/projects/Pomelo/proj.android
执行./build_native.sh
长达半个小时的等待中......
标签:android os java sp on c r javascript bs
原文地址:http://www.cnblogs.com/liujidong/p/3987579.html