Cocos2dx. 3x getting started trilogy-software environment configuration (1), cocos2dx. 3x Trilogy
I. Environment:
Win7 32-bit
Ii. necessary software:
L Java JDK
:Http://www.oracle.com/technetwork/java/javase/downloads/index.html
The version used by the author:1.6
L android-sdk
:Http://dl.google.com/android/android-sdk_r23.0.2-windows.zip
The version used by the author:R23
L android-ndk
:Http://dl.google.com/android/ndk/android-ndk32-r10-windows-x86.zip
The version used by the author:R10
L Eclipse
:Http://www.eclipse.org/downloads/packages/
The version used by the author:Indigo
L Python
:Https://www.python.org/downloads/windows/
The version used by the author:2.7.9
L Cygwin
:Https://cygwin.com/install.html
The version used by the author:For x86
Cocos2d-x-3.3
:Http://cn.cocos2d-x.org/download
The version used by the author:3.3
L Visual Studio 2012
:Http://download.microsoft.com/download/ B /0/f/b0f589ed-f1b7-478c-849a-02c8395d0995/vs2012_ult_chs.iso
The version used by the author:2012
Iii. installation and configuration:
Special Points:
You may need to add the following content to the hosts file before installing and configuring the hosts.
203.208.46.146 www.google.com
74.125.113.121 2.16.android.com
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com
L Java JDK installation and configuration
Installation:Basically, it is the next button. Pay attention to the path during installation. My path is C: \ Java \ jdk1.6.
Configuration:
1. Create an environment variable: JAVA_HOME. The value is C: \ Java \ jdk1.6.
2. Create an environment variable: The CLASSPATH value is ..; % JAVA_HOME % \ lib; (Note: The dot number indicates the current directory and cannot be omitted)
3. Add the following content before the Path value of the system variable: % JAVA_HOME % \ bin; (Note: The semicolon here cannot be omitted) Here, JDK installation is complete.
4. Click Start> Run. Enter the cmd command and enter java-version in the CMD window.
If the following interface is displayed, the installation is successful:
L android-sdk
Installation:You only need to extract the package to the directory. My path is C: \ android-sdk-windows.
Configuration:Configure in Eclipse below
Usage:Double-click the SDK Manager.exe in the installation directory to install and download the SDK Platform package, and select to download the corresponding package based on the android version you need to develop.
L android-ndk
Installation:Just extract to the directory, and my path is: C: \ android-ndk-r10
Configuration:Configure in Eclipse below
L Eclipse installation Configuration
Installation:You only need to extract the package to the directory. My path is C: \ eclipse-indigo.
Configuration:
1. ADT (Android Development Tool) installation and configuration:
Enable Eclipse and choose "Help"-> "Install New Software" from the menu"
Go to the Install interface and Add address: http://dl-ssl.google.com/android/eclipse,
Expand Developer Tools, check "Android DDMS" and "Android Development Tools", and then click Next to restart Eclipse after installation.
2. install and configure the SDK (android-sdk)
Choose "Window"> "Preferences" from the menu"
Select Android on the left and SDK Location on the right.
3. install and configure NDK (android-ndk)
Choose "Window"-> "Preferences" from the menu, and expand Android on the left to select the NDK below.
Select the path of the NDK Location on the right. This path is the directory placed after the android-ndk is decompressed.
L Python installation Configuration
Installation:Use the default installation method when installing python. The path to my path is C: \ Python27.
Configuration:To configure environment variables, right-click my computer and choose Properties> advanced system Settings> Advanced Tab> environment variables> system variables, add the environment variable pointing to Python in the value. The format is [Python installation path]. For example, the environment variable I installed on drive C is added to C: \ Python27;
L Cygwin installation Configuration
Installation:When cygwin is installed, use the default installation method. My path is C: \ cygwin.
Configuration:In the cygwin \ home \ folder, generate a new folder named after your login name and find ". bash_profile file, open in notepad or editplus text editor, and add at last: (C: \ android-ndk-r10 is the path to install ndk) NDK_ROOT =/cygdrive/c/android-ndk-r10
Export NDK_ROOT
Save and close.
Usage:Double-click Cygwin. bat in the installation directory (enter the cygwin directory in the command line and execute cygwin. bat)
L cocos2d-x-3.3 installation Configuration
Installation:Just extract to the directory, and my path is: C: \ cocos2d-x-3.3
Configuration:None
Usage:Subsequent details
L install and configure Visual Studio 2012
Installation:There's nothing to say about it.
Configuration:None
So far, the software and environment developed by cocos3dx 3. x are ready, and some other auxiliary small software such as TexturePacker and participant will be introduced in the future.
The author communicated QQ: 2303452599
Email: mymoney1001@126.com