Command line Create Cocos2d-x project

Source: Internet
Author: User

Website http://www.cocos2d-x.org Download Cocos2d-x

Before cocos2dx-3.0:

CD .../cocos2d-x-2.2.1/tools/project-creator

./create_project.py-project helloworld-package com.***.***-language CPP

cocos2dx-3.0:

CD .../cocos2d-x-3.0alpha1/tools/project-creator

./create_project.py-p helloworld-k com.***.***-L CPP

cocos2dx-3.1.1

1. Pico. Bash_profile

2.

Export ANDROID_SDK_ROOT=/LIBRARY/ANDROID/ADT-BUNDLE-MAC-X86_64-20140321/SDK

Export android_ndk_root=/library/android/android-ndk-r9b

Export cocos2dx_root=/library/android/cocos2d-x-3.1.1

Export ndk_root=/library/android/android-ndk-r9b

Export Ant_root=/library/android/apache-ant-1.9.4/bin

Export path= $PATH: $ANDROID _sdk_root

Export path= $PATH: $ANDROID _ndk_root

Export Cocos_console_root=/library/android/cocos2d-x-3.1.1/tools/cocos2d-console/bin

Export path= $COCOS _console_root: $PATH

Save Ctrl + X-Y Enter

(Source ~/.bash_profile)

3.

Cocos new Cocos2dx-p com.***.***-L cpp-d/users/***/documents/svn_cocos/trunk

Command line Create Cocos2d-x project

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.