Windows下用eclipse玩C-C++及安卓相关环境及工具

来源:互联网 发布:php javascript 传值 编辑:程序博客网 时间:2024/06/05 08:33

Windows下用eclipseC++用到一下三个东西:

1  eclipse

2  CDT(一个在eclipse开发C++的插件)

如果你做android的,直接去android的官方开发网站下载android开发版本的eclipse,也就是eclipse+ADT其中也带有CDT了。

3、  CygwinWindows平台的unix模拟程序,包含了gccg++),有人说用MinW,但我选择了Cygwin,我想是差不多的,我之所以选择Cygwin是因为它更能大部分模拟unix命令,也很方便。(之所以需要cygwin 是因为NDK编译代码时必须要用到make和gcc

 

Windows 下用eclipse开发c/c++编写的Android程序环境配置及开发工具:

由于NDK版本在r7以上之后就集成了Cygwin,所以就不需要在单独安装cygwin环境。

目前最简单的做法就是:

adt-bundle-windows-x86 + NDK SDK + JAVA SDK 并配置环境变量PATH即可

其中adt-bundle-windows-x86 在Google Android官网即可下载,解压包包含三个东西,eclipse(包含ADT Android开发插件,CDT C/C++开发插件),Android sdk,sdkmanager

配置java sdk 为了能打开eclipse

NDK提供了一系列的工具,帮助开发者快速开发C(或C++)的动态库,并能自动将sojava应用一起打包成apk

 

adt,cdt详细解释

一、ADT(包含类似于cdt的功能,包含NDK插件(但是没有NDK SDK))

Create a standard, vendor neutral Ada development environment for Eclipse. ADT should maintain as close as possible, the look and feel of the CDT and JDT, in order to mesh well with the Eclipse environment, as well as aid developers who need multi-language capabilities, or who need to transition between languages.

Provide a standard Ada environment with which third party tool developers can easily work, regardless of the choice of underlying compiler technology. Such tools would include, but are not limited to, modeling tools, editor tools, static and dynamic code analysis tools (ex coverage, profiling), refactoring tools, configuration management tools. 

Act as an additional reference for the ongoing process of making the Eclipse framework more able to easily support a variety of native and embedded language development environments (through interaction with projects such as CDT, DSDP and Safari.)

 

二、CDT

The CDT Project provides a fully functional C and C++ Integrated Development Environment based on the Eclipse platform. Features include: support for project creation and managed build for various toolchains, standard make build, source navigation, various source knowledge tools, such as type hierarchy, call graph, include browser, macro definition browser, code editor with syntax highlighting, folding and hyperlink navigation, source code refactoring and code generation, visual debugging tools, including memory, registers, and disassembly viewers.

0 0
原创粉丝点击