下载cygwin 并加入环境变量 Path ;cywin/bin;
下载,并加入环境变量 NDK_HOME
1.在cocos2dx2.2后 win平台统一使用python 生成android项目,以前的版本可以用 create_project.bat命令. 详细参数 会有提示。
python 下载地址 http://www.python.org/getit/
2.将生成的项目导入eclipse ,缺少org.cocos2dx.lib.Cocos2dxActivity等
将cocos2d-x-2.2\cocos2dx\platform\android\java\src 中的java源码拷贝到项目src下。
3.报错Program bash is not found in PATH
加入 cygwin\bin 到环境变量 path .重启
4.make: *** No rule to make target `all'. Stop.
右键项目-->properties-C/C++Build-->Builder settings
不要选择 “Use default build command” ,在下面的Build Command中输入下面命令:
bash "cocos2d-x-2.2\projects\PDK\proj.android\build_native.sh" NDK_DEBUG=1 V=1 clean
重新build