惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
V
Visual Studio Blog
P
Privacy International News Feed
月光博客
月光博客
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
L
Lohrmann on Cybersecurity
N
News and Events Feed by Topic
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Apple Machine Learning Research
Apple Machine Learning Research
阮一峰的网络日志
阮一峰的网络日志
Webroot Blog
Webroot Blog
T
Threatpost
宝玉的分享
宝玉的分享
The Last Watchdog
The Last Watchdog
小众软件
小众软件
L
LINUX DO - 最新话题
C
Cisco Blogs
T
Troy Hunt's Blog
Schneier on Security
Schneier on Security
酷 壳 – CoolShell
酷 壳 – CoolShell
www.infosecurity-magazine.com
www.infosecurity-magazine.com
雷峰网
雷峰网
G
GRAHAM CLULEY
有赞技术团队
有赞技术团队
Know Your Adversary
Know Your Adversary
博客园 - 叶小钗
罗磊的独立博客
V
V2EX
博客园 - Franky
P
Proofpoint News Feed
SecWiki News
SecWiki News
腾讯CDC
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Jina AI
Jina AI
博客园 - 三生石上(FineUI控件)
S
Secure Thoughts
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Google DeepMind News
Google DeepMind News
Attack and Defense Labs
Attack and Defense Labs
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
PCI Perspectives
PCI Perspectives
V2EX - 技术
V2EX - 技术
Google DeepMind News
Google DeepMind News
Last Week in AI
Last Week in AI
aimingoo的专栏
aimingoo的专栏
Cisco Talos Blog
Cisco Talos Blog
N
News and Events Feed by Topic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
S
SegmentFault 最新的问题

博客园 - 黑暗之眼

VS2022 过期 VOTT项目迁移 删除MYSQL教程 安装mysql 64位 Smartform给文本绑定值 ABAP的smartform赋值 查源代码中指定字符串 Excel取消保护密码 修改机器名后无法使用复制 COCOS2DX2.2.2 创建CCEditBox输入框架实现文本及密码输入 SSMS 2008R2没有智能感知方法解决 SQL SERVER 强制排序规则查询 清除SQL Server执行计划 Cocos2D-x搭建新环境注意事项 Cocos2D 指定文件夹创建项目 Cocos2D创建项目 DVDRW光驱无法读DVD刻录盘 监控SQL Server的job执行情况 动态调用Web Service
Android导入Cocos2D的Sample项目
黑暗之眼 · 2014-03-16 · via 博客园 - 黑暗之眼

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