Cocos2dx3.1-android environment to build a first experience

Source: Internet
Author: User

First play cocos2dx, a lot of forgive.

Feel the difference between the version is relatively large, relative to the previous version, 3.X is easier to get started, more convenient.

First, install Python. My python-2.7.3. Configuring Environment variables

System variable: Add D:\2013\python\Python27 in Path


Second, install Ant. My apache-ant-1.9.3. Configuring Environment variables

System variables: Create a new, Ant_home (D:\2013\ant\apache-ant-1.9.3), and add D:\2013\ant\apache-ant-1.9.3\bin in Path

User variables: Create a new, Ant_root (D:\2013\ant\apache-ant-1.9.3\bin)


Third, Cocos2dx 3.1.1.

Execute download-deps.py,setup.py in turn

Configure Ndk_root (D:\TOOL\android-ndk-r9d), Android_sdk_root (D:\TOOL\ANDROID-SDK), Ant_root (D:\2013\ant\ Apache-ant-1.9.3\bin)

Note The NDK version, write off the machine, and then execute the setup.py, a flash past, the configuration is good.

IV. Create a new project.

Cocos new-p com.xxx.simple-l cpp-d D:\2013\cocos2dx\projects simplegame

Five, compile

1. Command line compile: command line into the project directory, Cocos compile-p Android (Ant can also be compiled, command: Ant Debug)

2. Eclipse compilation: Import directly into Eclipse, and 2. X version is no different, after the lead in, you can directly run the compilation. (Here there is no need to configure this configuration that, than 2.) X save a lot of trouble)

Probably wrote a bit, have not understood the place message exchange.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.