Notes for porting cocos2dx games from iOS to Android:
- create-android-project.sh
- eclipse > new project from existing code
- add NDK_ROOT variable in eclipse (build_native.sh need to define NDK_ROOT, otherwise will report "Please define NDK_ROOT")
NDK_ROOT "path.to/android-ndk-r8b"
- make eclipse able to compile c++
New > Others > Convert to c/c++ project
- setup build path
bash path.to/build_native.sh NDK_DEBUG=1 V=1
- add include path: C++ General > Path and symbols
$(COCOS2DX_HOME)/cocos2dx
$(COCOS2DX_HOME)/cocos2dx/include
$(NDKROOT)/platforms/android-9/arch-arm/usr/include
$(workspace_loc)/Classes
- add c++ classes
link from source
- Build all (this will build the c++ library)
- Run As (this will pack the apk using jni)
Note:
- create AVD > enable GPU emulation for OpenGL ES2.0 support (start from Android 4.03)
- upon test I'm still not able to run OpenGL ES2.0 in emulator, but deploy to real device will work
- 浏览: 61888 次
- 性别:
- 来自: 北京
相关推荐
将Cocos2dx从win32移植到android平台 不用cygwin 只要简单的几步就可轻松搞定
使用cocos2dx新建的helloword工程,嵌入到android原生项目中的demo
cocos2dx用Eclipse编码配置并自动编译,不需要安装cygwin。
基于cocos2dx3.2的ScrollView改良版,paging分页部分是参考网上已有的源代码并进行改良,修复bug, indicator指示器部分是自己研发。 测试环境:mac os x (Windows平台 应该可行,需要你自己添加PagedScrollView到...
cocos2dx 编译到 android
IOS开发中因为引入cocos2dx,导致代码审核不通过无法提交( Apple will stop accepting submissions of apps that use UIWebView APIs )。该问题的解决方案有两种:1)升级Cocos2dx的版本,在查看Cocoas官网及Cocoas...
cocos2dx scrollview优化
cocos2dx android apk javascript cocos2dx android apk javascript cocos2dx android apk javascript cocos2dx android apk javascript cocos2dx android apk javascript
cocos2dx 模糊效果代码提供,尽情下载吧!
cocos2dx中使用精灵的例子,新手可参考。
cocos2dx android cpp-tests 编译成功的apk文件(debug版) cocos2dx android 基本例子程序 编译成功的apk文件(debug版)
NULL 博文链接:https://cindy-lee.iteye.com/blog/1718657
cocos2dx可用3d粒子编辑器,支持pc、mac、iphone、android等平台
eclipse下配置cocos2dx
cocos2dx for qt qt上混合cocos2dx
中文编码utf和gbk互转的库,可在cocos2dx android游戏用到
cocos2dx android 游戏开发 引擎 分析
我所理解的cocos2dx pdf
使用cocos2dx2.2.2游戏引擎,让游戏背景循环滚动。让滚动界面无缝连接起来
此代码在cocos2dx2.1.4下面编译有部分错误,我修改后,正常。 下下来后,请在VC++包含目录中链接(F:\cocos2d-x-2.1.4\cocos2dx\platform\win32;F:\cocos2d-x-2.1.4\cocos2dx\platform\third_party\win32\OGLES\GL\;...