Eclipse安装CDT开发C/C++

来源:互联网 发布:java const 参数 编辑:程序博客网 时间:2024/05/22 17:24

CDT下载地址http://www.eclipse.org/cdt/downloads.php


到现在终于完成了这个伟大任务,在一个IDE下既能开发Java又能写C++了,这不就可以和VS相媲美了!!!

 

事情是这样的,eclipse安装cdt插件就可以做c/c++的开发。 

 

下载eclipse相对应的cdt,官网上都有说明。对于3.6.2版,CDT的下载地址如下:

 http://www.eclipse.org/downloads/download.php?file=/tools/cdt/releases/helios/dist/cdt-master-7.0.1.zip

不用解压。

eclipse中,help->Install new software...

点击Add按钮,name中填一个名字如cdt,archive选刚下载的cdt文件。

去掉Contact all update sites during install to find required software 勾选,原因就是他还要联网获取信息,慢死人的。

报错了!

Cannot complete the install because one or more required items could not be found.

  Software being installed: C/C++ Remote Launch 6.0.0.201009141542 (org.eclipse.cdt.launch.remote.feature.group 6.0.0.201009141542)

  Missing requirement: C/C++ Remote Launch 6.0.0.201009141542 (org.eclipse.cdt.launch.remote.feature.group 6.0.0.201009141542) requires 'org.eclipse.rse.ui [3.0.0,4.0.0)' but it could not be found


看第一句话是一个或多个需要的items未找到!!!接着指出C/C++ Remote Launch 。

 什么情况牙??

 我的办法是把要安装的包的列表里面的 C/C++ Remote Launch  的选项去掉,这样可以再次下一步了。



Cannot complete the install because of a conflicting dependency.

  Software being installed: C/C++ GDB Hardware Debugging 7.0.0.201009141542 (org.eclipse.cdt.debug.gdbjtag.feature.group 7.0.0.201009141542)

  Software being installed: C/C++ Development Tools SDK 7.0.1.201009141542 (org.eclipse.cdt.sdk.feature.group 7.0.1.201009141542)

  Only one of the following can be installed at once: 

    C/C++ Development Tools GDB/MI CDI Debugger Core 7.0.1.201102110609 (org.eclipse.cdt.debug.mi.core 7.0.1.201102110609)

    C/C++ Development Tools GDB/MI CDI Debugger Core 7.0.1.201009141542 (org.eclipse.cdt.debug.mi.core 7.0.1.201009141542)

    C/C++ Development Tools GDB/MI CDI Debugger Core 7.0.1.201009241320 (org.eclipse.cdt.debug.mi.core 7.0.1.201009241320)

    C/C++ Development Tools GDB/MI CDI Debugger Core 7.0.0.201006141710 (org.eclipse.cdt.debug.mi.core 7.0.0.201006141710)

  Cannot satisfy dependency:

    From: C/C++ GDB Hardware Debugging 7.0.0.201009141542 (org.eclipse.cdt.debug.gdbjtag.feature.group 7.0.0.201009141542)

    To: org.eclipse.cdt.gnu.debug.feature.group [6.0.0,7.0.0)

  Cannot satisfy dependency:

    From: C/C++ Development Tools 7.0.1.201009141542 (org.eclipse.cdt.feature.group 7.0.1.201009141542)

    To: org.eclipse.cdt.gnu.debug.feature.group [7.0.1.201009141542]

  Cannot satisfy dependency:

    From: C/C++ GNU Toolchain Debug Support 6.1.0.201006141710 (org.eclipse.cdt.gnu.debug.feature.group 6.1.0.201006141710)

    To: org.eclipse.cdt.debug.mi.core [7.0.0.201006141710]

  Cannot satisfy dependency:

    From: C/C++ GNU Toolchain Debug Support 7.0.1.201009141542 (org.eclipse.cdt.gnu.debug.feature.group 7.0.1.201009141542)

    To: org.eclipse.cdt.debug.mi.core [7.0.1.201009141542]

  Cannot satisfy dependency:

    From: C/C++ Development Tools SDK 7.0.1.201009141542 (org.eclipse.cdt.sdk.feature.group 7.0.1.201009141542)

    To: org.eclipse.cdt.feature.group [7.0.1.201009141542]


大意是说,C/C++ Development Tools SDK 7.0.1.201009141542   和C/C++ GDB Hardware Debugging 7.0.0.201009141542 两个包之间有冲突,因此智能安装一个。我们再次放弃一个包的安装。这里放弃了C/C++ GDB Hardware Debugging 7.0.0.201009141542。


之后,一切OK,正常安装完成。

0 0
原创粉丝点击