1.安装各种软件:
Android SDK
Android NDK
Apache Ant
Python
Eclipse(adt)
Cygwin(可选)
Java
Cocos2d-x
2.系统环境变量配置
Java |
|
JAVA_HOME | C:\Program Files\Java\jdk1.7.0_51 |
CLASSPATH | .;%JAVA_HOME%\lib\dt.jar; %JAVA_HOME%\lib\tools.jar; |
PATH | %JAVA_HOME%\bin; %JAVA_HOME%\jre\bin; |
|
|
|
|
Android SDK |
|
ANDROID_SDK_HOME | D:\Android\android-sdk |
PATH | %ANDROID_SDK_HOME%\platform-tools;%ANDROID_SDK_HOME%\tools; |
|
|
|
|
Android NDK |
|
ANDROID_NDK_HOME | D:\Android\android-ndk-r9d |
PATH | %ANDROID_NDK_HOME% |
|
|
|
|
Apache Ant |
|
ANT_HOME | D:\Android\apache-ant-1.9.3 |
PATH | %ANT_HOME%\bin |
|
|
|
|
Cocos2d-X |
|
COCOS2DX_ROOT | D:\Cocos2dx\cocos2d-x-2.2.2; |
|
|
|
|
Python |
|
PATH | C:\Python27; |
|
|
|
|
Cygwin | 可以不用配置 |
CYGWIN_HOME | C:\Cygwin64 |
PATH | %CYGWIN_HOME%\bin; |
|
|
3.修改Cygwin文件:.bash_profile
添加:
NDK=/cygdrive/d/Android/android-ndk-r9dexport NDK
4.IDE配置(Eclipse)
如果使用Cygwin,下面一项可以不用配置,默认就行