找回密码
 立即注册
AndroidCocos2dxtheprebuild | android开发 2022-11-03 56 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
只看过一本,并且是cocos2d,而不是cocos2dx的。
LearniPhoneandiPadCocos2DGameDevelopment:该书的中文翻译版
CCHello:上述书的cocos2dx版比如实现的Android工程。
prebuild:用以寄存预编译的so。
环境配置简述:
1.下载cocos2dx(现在2.1版),解压到某途径,为{根目录}。2.修复{根目录}/cocos2dx/Android.mk,在最终倒数4个import-module前添加途径:`$(callimport-add-path,$(LOCAL_PATH)/platform/third_party/android/prebuilt)`3.导入CCHello工程,将jni/Android.mk和jni/Classes/SneakyInput/Android.mk最终注释的import-module都撤销,改为注释`$(callimport-module,prebuild)`。4.将jni/Android.mk内的COCOS2D_PATH修复成你的途径。编译,然后等吧~5.{根目录}新建prebuild,复制资料内prebuild/Android.mk文件,2.0.x用另外个。6.将编译出的libcocos2d.a、libcocosdenshion.a、libbox2d.a、libchipmunk.a、libextension.a五个文件复制至{根目录}/prebuild7.倒转第3步的操作,之后编译就不会再次编译cocos2dx的静态库了。

(I have only read one copy, and it is Cocos2d, not Cocos2dx.
Learn iPhone and iPad Cocos2 DGame Development: Chinese translation of the book
CCHello: The cocos2dx version of the above book, such as the Android project.
Prebuilt: Used to store the precompiled so.
Brief description of environment configuration:
1. Download cocos2dx (now version 2.1) and unzip it to {root directory}. 2. Fix {root directory}/cocos2dx/Android Mk, add the path before the last four import modules: ` $(callback add path, $(LOCAL_PATH)/platform/child_ party/Android/prebuilt) ` 3. Import the CCHello project, and cancel the import module of jni/Android.mk and jni/Classes/SneakyInput/android.mk final comments, and change it to the comment '$(callback module, build)'. 4. Install COCOS2D in jni/Android.mk_ PATH repairs your way. Compile, then wait~5. {root directory} to create a new prebuild, copy the prebuild/Android.mk file in the data, and use another for 2.0. x. 6. Copy the compiled libcocos2d. a, libcocosdanshion. a, libbox2d. a, libchipmunk. a, and libextension. a files to {root directory}/rebuild7. Reverse the operation in step 3. After compilation, the static library of cocos2dx will not be compiled again.)

[下载]15574068558.rar




上一篇:Android Socket
下一篇:Android-中G象棋