如何在Eclipse CDT中配置特定的GCC跨工具链? [英] How to configure a particular GCC cross toolchain in Eclipse CDT?

查看:395
本文介绍了如何在Eclipse CDT中配置特定的GCC跨工具链?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将某些源代码作为 C ++ Makefile项目导入到Eclipse CDT工作区中,并指定了跨GCC 索引器设置的工具链:

I have imported some source code as C++ Makefile Project to an Eclipse CDT workspace, and specified the Cross GCC toolchain for "Indexer Settings":

项目导入正常,但包含路径设置仅指向我当前的本机主机GCC实现:

The project import went fine, but the include path settings just point to my current native host GCC implementation:

I'一直在工具链编辑器属性对话框中查找,但是找不到任何方法来配置我一直在开发机器上构建并安装的特定跨工具链:

I've been looking in the Toolchain Editor properties dialog, but couldn't find any way to configure a particular cross-toolchain I've been building and installing on my development machine:

打开的对话框仅允许选择工具链粒子,而不能配置这些粒子应实际位于的位置:

The opened dialog only allows to select the toolchain particles, but not to configure, where these should be actually located:

< img src = https://i.stack.imgur.com/Grw6s.png alt =在此处输入图片描述>

如何配置Eclipse CDT以使用我的自制GCC跨工具链正确地输入Indexer,并使用我的特定GCC跨工具链提供的标准包含路径?

推荐答案


如何配置Eclipse CDT以使用我的自制GCC跨工具链正确输入Indexer,并使用此GCC跨工具链提供的标准包含路径?

不幸的是,如何为应该绑定到项目的特定(跨)工具链设置属性不是显而易见或直观的。

Unfortunately it's not obvious or intuitive, how to set the properties for a particular (cross-)toolchain, that should be bound to a project.

要使这些属性设置可用,请首先转到项目属性对话框中的 C ++ Build / Builder Settings 选项卡:

To make these property settings available, first go to the C++ Build/Builder Settings Tab in the project properties dialog:

,并选中自动生成Makefile 选项。 现在不要单击应用确定按钮!

但是请继续使用 C ++构建->设置子页面

and check the Generate Makefiles automatically option. Don't click the Apply or OK button now!
But proceed to the C++ Build->Settings sub page

并填写跨工具链前缀以及二进制文件实际所在的路径。

and fill in the cross-toolchain prefix, and path where the binaries are actually located.

返回 C ++ Build / Builder Settings 选项卡,然后取消选中自动生成Makefile文件(以防止在自动启动的版本上发生意外行为)选项,然后再保存项目属性。

Go back to the C++ Build/Builder Settings Tab and uncheck the Generate Makefiles automatically (to prevent unexpected behavior on automatically started builds) option, before saving the project properties.

这篇关于如何在Eclipse CDT中配置特定的GCC跨工具链?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆