简体   繁体   English

适用于Android C / C ++的Eclipse CDT

[英]Eclipse CDT for Android C/C++

I am trying to setup Eclipse IDE to help me manage and navigate through the C/C++ source for android. 我正在尝试设置Eclipse IDE,以帮助我管理和浏览android的C / C ++源代码。

Following the instructions on http://source.android.com/source/downloading.html I have a local copy of the source and following the instructions on http://source.android.com/source/using-eclipse.html I have setup Eclipse to navigate the Java source. 按照http://source.android.com/source/downloading.html上的说明进行操作,我具有源的本地副本,并且按照http://source.android.com/source/using-eclipse.html上的说明进行操作已设置Eclipse来导航Java源代码。

I am using ubuntu 12.04 and have installed CDT 8.0.2 for Eclipse indigo so I have the C/C++ development tools. 我正在使用ubuntu 12.04,并且已经为Eclipse indigo安装了CDT 8.0.2,所以我拥有C / C ++开发工具。 What I now need to do is set up the various projects for the android source. 我现在需要做的是为android源代码设置各种项目。

Is the a simple way to create a project from the exising source which will index all of the code so I can navigate between function calls? 从现有源创建项目的简单方法是对所有代码建立索引,以便我可以在函数调用之间进行导航吗? Simply which level in my directory structure do I have to do the "New Project from Existing Source" call? 我必须在目录结构的哪个级别上执行“来自现有源的新项目”调用? Is there already a configuration like the .classpath used for the Java setup? 是否已经有用于Java设置的.classpath之类的配置?

Many thanks in advance! 提前谢谢了!

You can install the Android plugin for eclipse (through eclipse: help -> install new software) and fill in https://dl-ssl.google.com/android/eclipse/ It is recommended that you use the generic eclipse, not the cdt. 您可以安装eclipse的Android插件(通过eclipse:帮助->安装新软件)并填写https://dl-ssl.google.com/android/eclipse/建议您使用通用的eclipse,而不是cdt。 You can install the cdt plugin in the same way. 您可以以相同方式安装cdt插件。

If you have cdt: create new project: c++ from existing code. 如果您有cdt:创建新项目:从现有代码中使用c ++。 Voila.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM