导入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 *

最新文章

  1. CodeForces 455D 分块
  2. 命令与文件的查询 which whereis locate find
  3. ExecutorService中submit和execute的区别(转)
  4. js中的继承
  5. centos6.8部署vnc服务
  6. tcpdump wireshark 实用过滤表达式(针对ip、协议、端口、长度和内容) 实例介绍
  7. .Net dll多个同名的程序集版本冲突共存与通过基本代码或探测定位程序集方案
  8. ASP.NET中使用开源插件zTree的小结
  9. 【转】Linux下查看所有用户及用户组
  10. OC分类(Category)
  11. eclipse:An internal error occurred during: "Build Project". GC overhead limit exceeded
  12. epel扩展库的安装
  13. SpringBoot Mybatis项目中的多数据源支持
  14. mysql性能监控软件pmm
  15. eclipse svn不显示提交人、提交时间的问题
  16. Vue之项目搭建
  17. N=NP?
  18. Vue---导航守卫使用方法详解
  19. word自动生成章节标题
  20. JS数组与对象的遍历方法大全

热门文章

  1. asp网站发布步骤总结
  2. 转 Android 4.0后,自定义Title报错 You cannot combine custom titles with other title feature
  3. Aliyun OSS SDK 异步分块上传导致应用异常退出
  4. ASP.NET 之 常用类、方法的超级总结,并包含动态的EXCEL导入导出功能,奉上类库源码
  5. C# 添加,修改,删除文件夹/文件集合
  6. (转)使用Aspose.Cell控件实现Excel高难度报表的生成(一)
  7. (转).NET技术+25台服务器怎样支撑世界第54大网站
  8. CAF(C++ actor framework)使用随笔(unbecome与keep_behavior用法)
  9. 你早该这么玩Excel 读书笔记
  10. php100 编程小技巧