ITeye博客

xcode与eclipse整合cocos2dx

abc20899 · 2013-07-29 10:32 · mac os · Cocos2d-x · android · 移动开发 · Markdown

文档xcode版本是 204 1. 在xcode中创建cocos2dx项目 TestGame 我的路径为 /Users/zhaoshun/cocos2dx/cocoWork/TestGame

2. 用create-android-project.sh 脚本创建 android版本的TestGame

3. 将android版本的TestGame里面的proj.android 整个文件夹拷贝到 ios版的TestGame 拷贝后的路径 /Users/zhaoshun/cocos2dx/cocoWork/TestGame/TestGame/proj.android

4. 修改 /Users/zhaoshun/cocos2dx/cocoWork/TestGame/TestGame/proj.android/build_native.sh文件

NDK_ROOT="/Users/zhaoshun/android/android-ndk-r8e"
COCOS2DX_ROOT="/Users/zhaoshun/cocos2dx/cocos2d-2.0-x-2.0.4"
APP_ROOT="/Users/zhaoshun/cocos2dx/cocoWork/TestGame/TestGame"
APP_ANDROID_ROOT="/Users/zhaoshun/cocos2dx/cocoWork/TestGame/TestGame/proj.android"

5. 运行build_native.sh

6. 在eclipse中导入 /Users/zhaoshun/cocos2dx/cocoWork/TestGame/TestGame/proj.android/

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。