环境
OS: CentOS-6.3-x86_64
JDK: 1.6.0_41
Eclipse: eclipse-java-juno-linux-gtk-x86_64
CDT: cdt-master-8.1.0
安装
1、安装JDK
2、安装Eclipse
[root@CentOS-6 dl]# tar -xzvf eclipse-java-juno-linux-gtk-x86_64.tar.gz -C /opt
测试是否可运行
[hwx@CentOS-6 ~]$ /opt/eclipse/eclipse
3、为Eclipse添加桌面快捷方式
在桌面"创建启动器"
-->
名称:eclipse
命令:/opt/eclipse/eclipse
-->
更改icon图标:点击图标,选择"/opt/eclipse/icon.xpm"
4、安装cdt插件
[root@CentOS-6 dl]# unzip cdt-master-8.1.0.zip -d /opt/tmp
[root@CentOS-6 dl]# cd /opt/tmp
将cdt解压目录下到plugins目录下到所有文件添加到/opt/eclipse/plugins
[root@CentOS-6 tmp]# mv plugins/* ../eclipse/plugins
重新运行eclipse,发现新建project时多了C/C++ Project
References
C/C++Development UserGuide, http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Fconcepts%2Fcdt_o_home.htm
http://www.eclipse.org/cdt/documentation.php
Developingapplications using the Eclipse C/C++ DevelopmentToolkit, http://www.ibm.com/developerworks/opensource/library/os-eclipse-stlcdt/
CDT/User/FAQ, http://wiki.eclipse.org/CDT/User/FAQ
Eclipse/CDTon Linux and Mac OSX, http://forge.mysql.com/wiki/Eclipse/CDT_on_Linux_and_Mac_OS_X
C++Development using eclipse IDE– Startersguide, http://www.codeproject.com/Articles/14222/C-Development-using-eclipse-IDE-Starters-guide
EclipseCDT on Linux, http://www.autexier.de/jmau/dev/CDT/cdt.html