Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tutorials

Reply
 
LinkBack Thread Tools Display Modes
Old 08-11-2011, 11:25 AM   #1 (permalink)
SuperSuRaccoon
 
Join Date: Apr 2011
Location: china
Age: 25
Posts: 31
SuperSuRaccoon is on a distinguished road
Send a message via Yahoo to SuperSuRaccoon
Default cocos2d-x (iphone-android)/IDE installation and setup under mac os

I'm recenly doing some research on mobile multi-platform game framework and since I've been playint with the cocos2d engie for a bit of time I think the cocos2d-x might be a great choice so planned to build the enviroment for both iphone and android under macos.

The whole process is far more tough than I ever thought(not to mention I am using a Hackintosh without internet connection). But, I finally get it done, so I'd like to write all the stuffs down and share it with all those who wanna do the same thing...

Here goes the process:
1.Install the leopard (I got a version of 10.6.5)

2.Install the XCode (I used the 3.2.5 since I don't like the 4.0 for some reasons)

3.Install for iphone dev(I am using the latest version cocos2d-1.0.0-x-0.9.0)

You can get it here: http://cocos2d-x.googlecode.com/files/cocos2d-1.0.0-x-0.9.0.zip

3.1 Follow the tutorial here:

http://www.cocos2d-x.org/projects/cocos2d-x/wiki/Chapter_1_-_How_to_Create_a_New_cocos2d-x_project_on_multi-platforms

In one word, just run "sudo ./install-templates-xcode3.sh" and that's all

4.Install for android dev (this is the toughest part)

4.1 Make sure you have JDK installed

You can input the "java -version" in your terminal to check

4.2 Make sure you have Ant installed (it's better to use the version higher than 1.8.0)

You can input the "ant -version" in your terminal to check

4.3 Install Eclipse

I used the helios version (eclipse-jee-helios-SR1-macosx-cocoa) since it contains some*nesscenary plugins (I*tried to use the eclipse-SDK-3.7-macosx-cocoa at first but got some problems that's hard to solve for me)

4.4 Install the ADT plugin

You can follow the instruction here:

http://developer.android.com/sdk/eclipse-adt.html

4.5 Install the Android SDK

If you got a internet connection than you can just follow this*instruction:

http://developer.android.com/sdk/installing.html

But, if you got no internet connection and have to work offline just like me then that's much*more complex:

4.5.1 Download all the neccenary packages

Here is a good instruction to follow:

http://qdevarena.blogspot.com/2010/05/download-android-sdk-standalone-for.html

or

http://azerdark.wordpress.com/2011/04/21/android-sdk-offline-installation/

4.5.2 Unpack the packages to the right position

4.5.3 Create && run the emulator


4.6 Install the Andriod NDK (I am using the NDK r5)

You can get it here:

http://www.crystax.net/android/ndk.php

Follow the instruction here:

http://developer.android.com/sdk/ndk/index.html

4.7 Build && Run the Test demo

Follow the instruction here:

http://www.cocos2d-x.org/projects/cocos2d-x/wiki/How_to_run_test_cases_on_android-ndk


4.8 Merging the Android project into the iPhone project

Follow the instruction here:

http://gameit.ro/2011/08/creating-an-iphone-and-android-cocos2d-x-hybrid-project/


And then the whole job is done

I'll continue to share some stuffs during the learning of working with both cocos2d-x*iPhone*and*android... so Stay tuned

PS: Since I can only post with 5 images and there're actually more images
in the post so if you are interested you can check it here:
http://www.supersuraccoon-cocos2d.co...-under-mac-os/
__________________

SuperSuRaccoon is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 470
13 members and 457 guests
alexeir, David-T, Dj_kades, foslock, iAppDeveloper, jeroenkeij, LunarMoon, Mijator, pipposanta, QuantumDoja, robsmy, sacha1996, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,129
Posts: 402,928
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:25 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0