Li huaming himiOriginal, reprinted must be explicitly noted:
Reprinted from[Heimi gamedev block]Link: http://www.himigame.com/iphone-cocos2dx/599.html
Starting from today, himi will gradually update the cocos2d-X blog, after all, cocos2d-X cross-platform is indeed very attractive, especially the net dragon Company "91 tribe" mobile online games more let himi has a deep value of cocos2dx, so today, himi will share how to build a cocos2d-X engine in the MAC system;
First, download the latest version of cocos2d-x. himidownload is cocos2d-1.0.1-9.9.2.zip. This version is compatible with ios5, so we may see that this article is not the latest version of 1.0.1, so here himi give download list address for everyone to select the desired version, http://code.google.com/p/cocos2d-x/downloads/list
Step 1: Download the engine package for the cocos2d-X, which has been given the address above;
Step 2: After the download is complete, himi places it in the document. (click "Finder" and click "document" on the left ");
Step 3: Start the terminal. (Click Finder-go-utility-Terminal)
Step 4: first use the command to enter the current "CD documents" to enter the Documents folder, continue to enter the folder command: "CD cocos2d-1.0.1-x-0.9.2", and then "sudo. the/install-templates-xcode.sh command starts to execute the installation command, which will prompt as follows:
select the template version to install3 for xcode34 for xcode4input nothing for all4
Select the version corresponding to your xcode, enter the corresponding number, and press enter to complete the installation ~ (Himi sad reminder, did not see this direct press ENTER selected by default 3-.-I'm depressed, it doesn't matter Haha ~)
OK, create a project below, and then xcode appears the following interface, look at the left column, an additional cocos2d-x, such:
Then the new cocos2d-X project is as follows:
Run it directly. The effect is as follows:
OK. The building is complete. The perfect operation is said. Hey, it's not too early. It's time to prepare for bed. Good night, kids shoes ~