Cocos2d-x Development Learning Cocos2d-x 3.0rc deployment

Source: Internet
Author: User

This is my first technical article. Here I will share my deployment experience. Thank you for your reference.

I simply wrote my deployment steps and only referred to the official readme.


Environment:
Win7 64-bit


1. Open the cmd Console

2. Go to the cocos2d-x Engine Directory and type setup. py (the premise is to configure the python environment variables)
Check whether the environment variables of android, ndk, and ant (build tool) are configured.

3. Add the cocos bin directory to the environment variable path.
Example F: \ MyWork \ tools \ 2dx \ cocos2d-x-3.0rc0 \ tools \ cocos2d-console \ bin

4. Restart the terminal or the computer
Make environment variables take effect

5. Create a project (explained in brackets) and type
For example, cocos new hello (project name)-p com. jin. hello (package name)-l cpp (project type)-d F: \ MyWork \ cocos2dx_workspace (Project Storage path)

6. Compile to the android platform
Go to the project directory in the console, for example, F: \ MyWork \ cocos2dx_workspace \ hello.

7. Type cocos run-p android
Wait, and then you can install it on the simulator or on the real machine.

8. The generated apk package is in the bin under the root directory of the project.


Finally, attach the great god sub-mountain recording related video, address: http:// I .youku.com/u/UMTQzODIyNzQ0NA== also hope you can be familiar with 2dx 3.0rc project deployment as soon as possible.

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.