First experience of cocos2d-x3.0 and Some Problems Encountered

Source: Internet
Author: User

The cocos2d-x has reached version 3.0. This update is relatively large. 1. Create a project on the console instead of using XCode. Step 1: Download a 3.0 package from the official website. 2. I downloaded the beta cocos2d-x-3.0alpha0, 3. Then open the terminal cd to the cocos2d-x-3.0alpha0 directory 4, and then run the following command to create the project. /create-multi-platform-projects.py-p <PROJECT_NAME>-k <PACKAGE_NAME>-l <cpp | lua | javascript> <PROJECT_NAME> <PACKAGE_NAME> <cpp | lua | javascript> Replace the three with you required, as follows. /create-multi-platform-projects.py-p HelloWorld-k com. myCompany. after HelloWorld-l cpp is run, the project is created in the projects directory under the cocos2d-x-3.0alpha0. Note: 1. If you install it in a small way before installation in the console input./install-deps-linux.sh then you will delete the current 3.0 folder. Otherwise, an error occurs even after the project is created. The error is as follows:

clang: error: no such file or directory: '/Users/tokou/Library/Developer/Xcode/DerivedData/HelloCpp-bjyxwvdvsmprtlejjmzkzhesieuy/Build/Products/Debug-iphonesimulator/libbox2d iOS.a'  clang: error: no such file or directory: '/Users/tokou/Library/Developer/Xcode/DerivedData/HelloCpp-bjyxwvdvsmprtlejjmzkzhesieuy/Build/Products/Debug-iphonesimulator/libchipmunk iOS.a'  clang: error: no such file or directory: '/Users/tokou/Library/Developer/Xcode/DerivedData/HelloCpp-bjyxwvdvsmprtlejjmzkzhesieuy/Build/Products/Debug-iphonesimulator/libcocos2dx iOS.a'  clang: error: no such file or directory: '/Users/tokou/Library/Developer/Xcode/DerivedData/HelloCpp-bjyxwvdvsmprtlejjmzkzhesieuy/Build/Products/Debug-iphonesimulator/libcocos2dx-extensions iOS.a'  clang: error: no such file or directory: '/Users/tokou/Library/Developer/Xcode/DerivedData/HelloCpp-bjyxwvdvsmprtlejjmzkzhesieuy/Build/Products/Debug-iphonesimulator/libCocosDenshion iOS.a'  

 

To solve this problem, just decompress a new 3.0 !! And then directly create the 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.