http://www.cocos2d-x.org/wiki/How_to_set_up_the_android_cocos2d-x_development_environment_on_Windows_7#Edit-the-batch-file
http://www.cnblogs.com/lhming/archive/2012/06/27/2566460.html
http://www.cnblogs.com/zilongshanren/archive/2011/09/27/2192928.html
将HelloCpp导入eclipse遇到问题:
**** Build of configuration Default for project HelloCpp ****
bash D:/ProgramFiles/cocos2d-x-2.2/samples/Cpp/HelloCpp/proj.android/build_native.sh
Cannot run program "bash": Launching failed
Error: Program "bash" is not found in PATH
PATH=[D:/Program Files/Java/jdk1.7.0_10/bin/../jre/bin/client;D:/Program Files/Java/jdk1.7.0_10/bin/../jre/bin;D:/Program Files/Java/jdk1.7.0_10/bin/../jre/lib/i386;D:\Program Files\adt-bundle-windows-x86\sdk\platform-tools;C:\Program Files\NVIDIA Corporation\PhysX\Common;D:\Program Files\ImageMagick-6.8.1-Q16;D:\Program Files\Java\jdk1.7.0_10\bin;D:\Program Files\Java\jdk1.7.0_10\jre\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\Program Files\MacType;D:\Program Files\adt-bundle-windows-x86\eclipse;]
**** Build Finished ****
环境变量中系统变量Path后面加上 ;D:\ProgramFiles\cygwin2\bin
重启eclipse就好了