Installing with batch processing, compiling COCOS2D-X 3.0---Windows

Source: Internet
Author: User

This document applies:
    • Win7 32bits (XP 32bits may apply, not tested)
    • Development target Environment Android

Software version number May 2014 was downloaded as a newer version number.

Since the cocos2d-x from 2.x to 3.0 compilation method has changed, there are very many 2.x on the net, 3.0 also have, but not comprehensive. I was patchwork to finish. At the same time thanks to the people who wrote blogs on Csdn,51cto. Assuming they are not their documents, the results are very difficult to succeed.

1. Download file I put all the files I want to download on the Baidu disk. Tested on Win7 bare metal.

HTTP/pan.baidu.com/s/1pjsjcxd

2. Install Python (default folder)

C:\Python27;

3. Install Jdk-8u5 (default folder)

C:\Program files\java\jdk1.8.0_05;

4. Unzip the following 4 files into the same folder

<ol style= "margin:0px 0px 0px 33px; padding:0px; "class=" Linenums "><li style=" Color:rgb (190, 190, 197); line-height:18px; padding-left:12px, "class=" L0 "><code style=" padding:0px; border:0px CurrentColor; Color:inherit; Font-family:monaco,menlo,consolas, ' Courier New ', monospace; font-size:12px; background-color:transparent; " ><span class= "lit" style= "color: #195f91;" >2014</span><span class= "pun" style= "color: #93a1a1;" >/</span><span class= "lit" style= "color: #195f91;" >05</span><span class= "pun" style= "color: #93a1a1;" >/</span><span class= "lit" style= "color: #195f91;" >12</span><span class= "PLN" style= "color: #48484c;" > </span><span class= "lit" style= "color: #195f91;" >16</span><span class= "pun" style= "color: #93a1a1;" >:</span><span class= "lit" style= "color: #195f91;" >30</span><span class= "PLN" style= "color: #48484c;" > </span><span class= "lit" style= "COLOR: #195f91;" >535</span><span class= "pun" style= "color: #93a1a1;" >,</span><span class= "lit" style= "color: #195f91;" >085</span><span class= "pun" style= "color: #93a1a1;" >,</span><span class= "lit" style= "color: #195f91;" >536</span><span class= "PLN" style= "color: #48484c;" > Adt</span><span class= "pun" style= "color: #93a1a1;" >-</span><span class= "PLN" style= "color: #48484c;" >bundle</span><span class= "pun" style= "color: #93a1a1;" >-</span><span class= "PLN" style= "color: #48484c;" >windows</span><span class= "pun" style= "color: #93a1a1;" >-</span><span class= "PLN" style= "color: #48484c;" >x86</span><span class= "pun" style= "color: #93a1a1;" >-</span><span class= "lit" style= "color: #195f91;" >20140321.zip</span></code></li><li style= "Color:rgb (190, 190, 197); line-height:18px; padding-left:12px; "class=" L1 "><code style="padding:0px; border:0px CurrentColor; Color:inherit; Font-family:monaco,menlo,consolas, ' Courier New ', monospace; font-size:12px; background-color:transparent; " ><span class= "lit" style= "color: #195f91;" >2014</span><span class= "pun" style= "color: #93a1a1;" >/</span><span class= "lit" style= "color: #195f91;" >05</span><span class= "pun" style= "color: #93a1a1;" >/</span><span class= "lit" style= "color: #195f91;" >09</span><span class= "PLN" style= "color: #48484c;" > </span><span class= "lit" style= "color: #195f91;" >07</span><span class= "pun" style= "color: #93a1a1;" >:</span><span class= "lit" style= "color: #195f91;" >32</span><span class= "PLN" style= "color: #48484c;" > </span><span class= "lit" style= "color: #195f91;" >491</span><span class= "pun" style= "color: #93a1a1;" >,</span><span class= "lit" style= "color: #195f91;" >440</span><span class= "Pun"style= "COLOR: #93a1a1;" >,</span><span class= "lit" style= "color: #195f91;" >074</span><span class= "PLN" style= "color: #48484c;" > Android</span><span class= "pun" style= "color: #93a1a1;" >-</span><span class= "PLN" style= "color: #48484c;" >ndk</span><span class= "pun" style= "color: #93a1a1;" >-</span><span class= "PLN" style= "color: #48484c;" >r9d</span><span class= "pun" style= "color: #93a1a1;" >-</span><span class= "PLN" style= "color: #48484c;" >windows</span><span class= "pun" style= "color: #93a1a1;" >-</span><span class= "PLN" style= "color: #48484c;" >x86</span><span class= "pun" style= "color: #93a1a1;" >.</span><span class= "PLN" style= "color: #48484c;" >zip</span></code></li><li style= "Color:rgb (190, 190, 197); line-height:18px; padding-left:12px, "class=" L2 "><code style=" padding:0px; border:0px CurrentColor; Color:inherit; Font-family:mOnaco,menlo,consolas, ' Courier New ', monospace; font-size:12px; background-color:transparent; " ><span class= "lit" style= "color: #195f91;" >2014</span><span class= "pun" style= "color: #93a1a1;" >/</span><span class= "lit" style= "color: #195f91;" >05</span><span class= "pun" style= "color: #93a1a1;" >/</span><span class= "lit" style= "color: #195f91;" >21</span><span class= "PLN" style= "color: #48484c;" > </span><span class= "lit" style= "color: #195f91;" >14</span><span class= "pun" style= "color: #93a1a1;" >:</span><span class= "lit" style= "color: #195f91;" >24</span><span class= "PLN" style= "color: #48484c;" > </span><span class= "lit" style= "color: #195f91;" >8</span><span class= "pun" style= "color: #93a1a1;" >,</span><span class= "lit" style= "color: #195f91;" >309</span><span class= "pun" style= "color: #93a1a1;" >,</span><span class= "lit" style= "coLor: #195f91; " >406</span><span class= "PLN" style= "color: #48484c;" > Apache</span><span class= "pun" style= "color: #93a1a1;" >-</span><span class= "PLN" style= "color: #48484c;" >ant</span><span class= "pun" style= "color: #93a1a1;" >-</span><span class= "lit" style= "color: #195f91;" >1.9</span><span class= "pun" style= "color: #93a1a1;" >.</span><span class= "lit" style= "color: #195f91;" >4</span><span class= "pun" style= "color: #93a1a1;" >-</span><span class= "PLN" style= "color: #48484c;" >bin</span><span class= "pun" style= "color: #93a1a1;" >.</span><span class= "PLN" style= "color: #48484c;" >zip</span></code></li><li style= "Color:rgb (190, 190, 197); line-height:18px; padding-left:12px, "class=" L3 "><code style=" padding:0px; border:0px CurrentColor; Color:inherit; Font-family:monaco,menlo,consolas, ' Courier New ', monospace; font-size:12px; Background-color:transparent; " ><span class= "lit" style= "color: #195f91;" >2014</span><span class= "pun" style= "color: #93a1a1;" >/</span><span class= "lit" style= "color: #195f91;" >05</span><span class= "pun" style= "color: #93a1a1;" >/</span><span class= "lit" style= "color: #195f91;" >05</span><span class= "PLN" style= "color: #48484c;" > </span><span class= "lit" style= "color: #195f91;" >15</span><span class= "pun" style= "color: #93a1a1;" >:</span><span class= "lit" style= "color: #195f91;" >23</span><span class= "PLN" style= "color: #48484c;" > </span><span class= "lit" style= "color: #195f91;" >265</span><span class= "pun" style= "color: #93a1a1;" >,</span><span class= "lit" style= "color: #195f91;" >044</span><span class= "pun" style= "color: #93a1a1;" >,</span><span class= "lit" style= "color: #195f91;" >214</span><span class= "PLN" style= "color: #48484c;" &Gt Cocos2d</span><span class= "pun" style= "color: #93a1a1;" >-</span><span class= "PLN" style= "color: #48484c;" >x</span><span class= "pun" style= "color: #93a1a1;" >-</span><span class= "lit" style= "color: #195f91;" >3.0</span><span class= "pun" style= "color: #93a1a1;" >.</span><span class= "PLN" style= "color: #48484c;" >zip</span></code></li></ol>

I put it in C:\Users\chinagame\.

5. Change paths and Run scripts

Put Cg_start.bat in C:\Users\chinagame\ at the same time.

Change: Cg_start.bat First line

Set cg_root=c:\users\chinagame\

Run Cg_start.bat


CD Project\helloword

Cocos Run-p Android

Let's say the helloworld.apk is well-prepared.


Such a method does not put the settings into the environment variables; It is best to manually configure the following yourself, or wait for me to write a program to change the registration form .....

Installing with batch processing, compiling COCOS2D-X 3.0---Windows

Related Article

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.