Cocos2d-x 3.7 Win7 32+android environment configuration

Source: Internet
Author: User

previously used cocos2d-x 2.2.6 version, recently replaced by 3.7, the current version of the latest. The whole process also encountered a lot of problems, has now been successfully transplanted to the mobile phone.

Share the whole process, hoping to help others. (The required software is packaged)


"Download Software"

0.cocos2d-x 3.7

1.vs2012/vs2013 (I use the VS2013)

2.Python 2.7.5

3.jdk

4.Android SDK

5.Android NDK (must be r10c)

6.ANT


"cocos2d-x3.7 Win7 32 environment configuration and new project "


1. Installing vs2013

2. Unzip the cocos2d-x3.7,




Run Cocos2d-win32.sln, set cpp-tests as Startup Project






1. If the interface appears, the cocos2d-x3.7 Win7 32 environment is configured successfully




2. In the Command Prompt window, enter Cocos, the following appears, also means cocos2d-x3.7 Win7 32 environment configuration succeeded



For new and compiled projects using Cocos, refer to the following blog post

Http://www.zaojiahua.com/cocos2d-x-3-0.html


"Android Development environment Configuration "

1. Install Python

After installation, set environment variables



After opening the Command Prompt window, enter the Python carriage return and see the following screen to indicate success



Android SDK, Ant does not need to install, directly decompression can. NDK runs directly and generates the ANDROID-NDK-R10C folder in the current directory


After you configure the environment variables

Ndk_root D:\Android\android-ndk-r10c

Ant_root D:\ComputerProgram\apache-ant-1.9.4\bin

Android_sdk_rootD:\Android\adt-bundle-windows-x86-20140321\sdk

Add D:\Program files\java\jdk1.7.0_45\bin in the path directory



Test environment is built successfully

In turn, execute the selected

download-deps.py and setup.py




The following screen shows the success of the building



To create a new project, the following screen appears



Go to proj-android folder, execute build_native.py, Generate Libs folder (not this folder before executing bulid_native.py)


Then you can import Android.




Import both the source file and the link library


My source file location




Link File location




Right-click Property (properties) on the project name




Remove the Red fork, and then libcocos2d-x add in.






Real-Machine testing







The whole process is also enough to toss people, if anyone with cocos2d-x3.7 environment error can be private chat, I will do my best to help you build the environment.


Almost forgot!!!!

Required Resource Files

Link: Http://pan.baidu.com/s/1hqIWidI Password: unag



Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Cocos2d-x 3.7 Win7 32+android environment configuration

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.