Search code examples
c++ceclipsegcctoolchain

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++ . 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

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]

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

and in

Project Properties -> Paths and Symbols -> adding the directory /Users/joanot/Development/gcc-arm-none-eabi-4_9-2014q4/bin and


Solution

  • In 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

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

    Add -> Name = PATH , value = ${GCC_EABI}