简体   繁体   English

Eclipse Juno CDT在Linux上运行 - 它没有给我任何工具链

[英]Eclipse Juno CDT running in Linux - it does not give me any toolchain

I am using Slackware 14 and latest Eclipse Juno. 我正在使用Slackware 14和最新的Eclipse Juno。

As a regular Eclipse user, I installed CDT just like I always did. 作为普通的Eclipse用户,我像往常一样安装了CDT。 However, when I create a new project, there is no toolchain available. 但是,当我创建一个新项目时,没有可用的工具链。 Screenshot here: 截图:

没有工具链可供选择

I remember I used to get the default GCC toolchain available as soon as I have CDT installed in Linux. 我记得我曾经在Linux上安装CDT后立即获得默认的GCC工具链。 Even if using BSD, I could install GCC cross compile toolchain and it just works for native GCC as well. 即使使用BSD,我也可以安装GCC交叉编译工具链,它也适用于原生GCC。 I tried to install the cross compile toolchain and CDT does not pick it up. 我试图安装交叉编译工具链,CDT不会把它拿起来。

Please offer your suggestions, thank you. 请提出您的建议,谢谢。

你应该从帮助菜单安装它

I had the same problem. 我有同样的问题。 At some point, I could program in C++ with Eclipse. 在某些时候,我可以使用Eclipse在C ++中编程。 One day, it can't find any tool chain even when there are a couple of them. 有一天,即使有几个工具链,它也找不到任何工具链。 Basically, you need to reinstall your CDT plugin with assumption that you installed your tool chain in a correct place - for this, you need to refer to instructions for your Linux distribution. 基本上,您需要重新安装CDT插件,并假设您已将工具链安装在正确的位置 - 为此,您需要参考Linux发行版的说明。

Here is what I did without changing anything on toolchain: 这是我在没有改变任何工具链的情况下所做的事情:

  1. Uninstall CDT from Eclipse 从Eclipse卸载CDT

    Help -> Install new software -> Click the link "Already installed" -> Select CDT items -> Click Uninstall 帮助 - >安装新软件 - >单击“已安装” - >选择CDT项目 - >单击卸载

  2. Install CDT again 再次安装CDT

This got me my toolchain back in Eclipse. 这让我的工具链回到Eclipse中。

In case reinstalling does not work, it means you have unsupported toolchain for some reason. 如果重新安装不起作用,则表示由于某种原因您有不受支持的工具链。 Uncheck Show project types and toolchains only if they are supported on the platform on the new project dialog. 取消选中Show project types and toolchains only if they are supported on the platform在新项目对话框Show project types and toolchains only if they are supported on the platformShow project types and toolchains only if they are supported on the platform Then it will show the toolchain. 然后它将显示工具链。 You can go ahead to select the toolchain to create the project. 您可以继续选择工具链来创建项目。 But I'd try to find why the installed gcc is unsupoprted. 但我试着找出为什么安装的gcc是不可取的。

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

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