i have developed 1 demo app in cocos2d-x . nicely runs on cocos2d-x simulator (iphone). want run app on android device(using eclipse avd or android device). setup environment explained here http://www.raywenderlich.com/33750/cocos2d-x-tutorial-for-ios-and-android-getting-started. run 1 hello world demo on android simulator using eclipse.
now, want run existed cocosd-x project on andriod device.how can achieve !? [i on mac platform]
this porting cocos2d-x iphone project android .
any kind of appreciated lot.
- go cocos2d-x directory (that downloaded)
- run "create-android-project.sh" (follow on screen instructions)
- replace "classes" "resources" directories in newly created project directory ones have in xcode project.
- add cpp files proj.android/jni/android.mk file.
- run "build_native.sh" in proj.android directory.
- open eclipse, import android project
- link cocos2d-x java project (this under cocos2d-x/platform/android/java)
- run project. (if have android phone connected machine debug on usb enabled). should see project launched on phone.
Comments
Post a Comment