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

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
Help Net Security
Help Net Security
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
C
Cisco Blogs
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
L
LINUX DO - 热门话题
Security Latest
Security Latest
A
Arctic Wolf
G
GRAHAM CLULEY
月光博客
月光博客
S
Securelist
D
Docker
J
Java Code Geeks
T
Troy Hunt's Blog
T
Tenable Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
SecWiki News
SecWiki News
S
Security @ Cisco Blogs
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
LINUX DO - 最新话题
Recent Commits to openclaw:main
Recent Commits to openclaw:main
aimingoo的专栏
aimingoo的专栏
博客园 - 【当耐特】
H
Heimdal Security Blog
The Hacker News
The Hacker News
博客园 - 三生石上(FineUI控件)
Application and Cybersecurity Blog
Application and Cybersecurity Blog
N
Netflix TechBlog - Medium
Vercel News
Vercel News
Forbes - Security
Forbes - Security
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
IT之家
IT之家
B
Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
S
Secure Thoughts
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Check Point Blog
云风的 BLOG
云风的 BLOG
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Blog of Author Tim Ferriss
L
Lohrmann on Cybersecurity
F
Full Disclosure
D
Darknet – Hacking Tools, Hacker News & Cyber Security
P
Proofpoint News Feed

博客园 - 黑暗之眼

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 *