Android导入Cocos2D的Sample项目
导入Cocos2D项目到Android的Eclipse时注意以下几点
1. Set up Variables:
Eclipse->Windows->Preferences->General->Workspace->**Linked Resources**
Click **New** button to add a Path Variable `COCOS2DX` pointing to the root cocos2d-x directory.
2. C/C++ Environment Variable `NDK_ROOT`:
Eclipse->Windows->Preferences->C/C++->Build->**Environment**.
Click **Add** button and add a new variable `NDK_ROOT` pointing to the root NDK directory.
3. Import libcocos2dx library project:
File->New->Project->Android Project From Existing Code.
Click **Browse** button and open `cocos2d-x/cocos2dx/platform/android/java` directory.
Click **Finish** to add project.
4. File->New->Project->Android Project From Existing Code
**Browse** to your project directory. eg: `cocos2d-x/cocos2dx/samples/Cpp/TestCpp/proj.android/`
Add the project
Click **Run** or **Debug** to compile C++ followed by Java and to run on connected device or emulator.
最后, 在Cygwin控制台下的Cocos2D根目录下执行下面语句
Chmod -R 755 *
最新文章
- CodeForces 455D 分块
- 命令与文件的查询 which whereis locate find
- ExecutorService中submit和execute的区别(转)
- js中的继承
- centos6.8部署vnc服务
- tcpdump wireshark 实用过滤表达式(针对ip、协议、端口、长度和内容) 实例介绍
- .Net dll多个同名的程序集版本冲突共存与通过基本代码或探测定位程序集方案
- ASP.NET中使用开源插件zTree的小结
- 【转】Linux下查看所有用户及用户组
- OC分类(Category)
- eclipse:An internal error occurred during: ";Build Project";. GC overhead limit exceeded
- epel扩展库的安装
- SpringBoot Mybatis项目中的多数据源支持
- mysql性能监控软件pmm
- eclipse svn不显示提交人、提交时间的问题
- Vue之项目搭建
- N=NP?
- Vue---导航守卫使用方法详解
- word自动生成章节标题
- JS数组与对象的遍历方法大全
热门文章
- asp网站发布步骤总结
- 转 Android 4.0后,自定义Title报错 You cannot combine custom titles with other title feature
- Aliyun OSS SDK 异步分块上传导致应用异常退出
- ASP.NET 之 常用类、方法的超级总结,并包含动态的EXCEL导入导出功能,奉上类库源码
- C# 添加,修改,删除文件夹/文件集合
- (转)使用Aspose.Cell控件实现Excel高难度报表的生成(一)
- (转).NET技术+25台服务器怎样支撑世界第54大网站
- CAF(C++ actor framework)使用随笔(unbecome与keep_behavior用法)
- 你早该这么玩Excel 读书笔记
- php100 编程小技巧