1 JAVA_HOME 2 C:\Program Files\Java\jdk1.7.0_51 3 4 CLASSPATH 5 .;%JAVA_HOME%\lib\dt.jar; %JAVA_HOME%\lib\tools.jar; 6 7 PATH 8 %JAVA_HOME%\bin; %JAVA_HOME%\jre\bin;
安装到D:\Android\android-sdk
1 ANDROID_SDK_HOME 2 D:\Android\android-sdk 3 4 PATH 5 %ANDROID_SDK_HOME%\platform-tools;%ANDROID_SDK_HOME%\tools;
解压到D:\Android
1 ANDROID_NDK_HOME 2 D:\Android\android-ndk-r9d 3 4 PATH 5 %ANDROID_NDK_HOME%
解压到D:\Android
1 ANT_HOME 2 D:\Android\apache-ant-1.9.3 3 4 PATH 5 %ANT_HOME%\bin
解压到:D:\Cocos2dx
1 COCOS2DX_ROOT 2 D:\Cocos2dx\cocos2d-x-2.2.2;
PATH
C:\Python27;
1 CYGWIN_HOME 2 C:\Cygwin64 3 4 PATH 5 %CYGWIN_HOME%\bin;
将adt-bundle-windows-x86_64-20140321.zip中的eclipse解压到D:\Android
VS默认安装就行,最好安装个插件(VA_X_Setup2029.exe)
eclipse配置分为两种情况:1、使用ndk-build.cmd编译。2、使用build_native.sh编译
需要添加一个变量
1 NDK_MODULE_PATH 2 ${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos2dx/platform/third_party/android/prebuilt
还需要配置项目的属性(添加ndk-build.cmd的路径)