简体   繁体   English

在OS X中为C / C ++开发人员Mars在Eclipse IDE中设置gcc(gcc-arm-embedded)

[英]Setting gcc ( gcc-arm-embedded ) in Eclipse IDE for C/C++ Developers Mars in OS X

I am a newbie in Eclipse IDE for C/C++ . 我是Eclipse IDE for C / C ++的新手。 I want to set gcc-arm-embedded in Eclipse IDE for C/C++ Developers Mars Milestone 4 (4.5.0M4), I just downloaded https://launchpad.net/gcc-arm-embedded/+download , and now I guess that I have to set PATH somewhere in Eclipse, as I am experiencing this ERRORs in 1 project 我想为C / C ++开发人员Mars Milestone 4(4.5.0M4)在Eclipse IDE中设置gcc-arm-embedded,我刚刚下载了https://launchpad.net/gcc-arm-embedded/+download ,现在我猜我必须在Eclipse的某处设置PATH,因为我在1个项目中遇到此错误

Program "arm-none-eabi-g++" not found in PATH
Program "arm-none-eabi-gcc" not found in PATH

The location of the error is in 错误的位置在
Project Properties -> C / C++ General -> Preprocessor Include Paths, Macros, etc -> Languages (GNU C) -> [ CDT GCC Built-in Compiler Settings Cross ARM] 项目属性-> C / C ++常规->预处理器包含路径,宏等->语言(GNU C)-> [CDT GCC内置ARM编译器设置]

But I can't edit this entry: "Setting entries for this provider are supplied by the system and are not editable" 但是我无法编辑此条目:“此提供程序的设置条目由系统提供,并且不可编辑”

I've tried with: 我尝试过:

export PATH=$PATH:/Users/joanot/Development/gcc-arm-none-eabi-4_9-2014q4/bin 导出PATH = $ PATH:/ Users / joanot / Development / gcc-arm-none-eabi-4_9-2014q4 / bin

and in 和在

Project Properties -> Paths and Symbols -> adding the directory /Users/joanot/Development/gcc-arm-none-eabi-4_9-2014q4/bin and 项目属性->路径和符号->添加目录/ Users / joanot / Development / gcc-arm-none-eabi-4_9-2014q4 / bin和

In Eclipse -> Preferences -> C / C++ -> Build -> Build Variables: Eclipse -> Preferences -> C / C++ -> Build -> Build Variables:

Create 1 variable named GCC_EABI, type= Directory, value= /usr/local/gcc-arm-none-eabi-4_9-2014q4/bin 创建1个名为GCC_EABI的变量,类型=目录,值= / usr / local / gcc-arm-none-eabi-4_9-2014q4 / bin

In Eclipse -> Preferences -> C / C++ -> Build -> Environment: Eclipse -> Preferences -> C / C++ -> Build -> Environment:

Add -> Name = PATH , value = ${GCC_EABI} 添加->名称= PATH,值= $ {GCC_EABI}

In case someone reads this later (like I just did) this works, however the real answer is here 万一有人稍后再读(如我刚刚读过的),这可以工作,但是真正的答案在这里

Essentially you need to go to Eclipse -> Preferences -> C/C++ Build -> Tools Paths Add the path (in my case /Users/${USER}/armtools/install/bin) to the Toolchain folder 基本上,您需要转到Eclipse->首选项-> C / C ++构建->工具路径将路径(在我的情况下为/ Users / $ {USER} / armtools / install / bin)添加到Toolchain文件夹中

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

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