arm-none-eabi-g ++:在Eclipse中找不到命令

时间:2016-10-06 05:16:23

标签: c++ eclipse gcc g++ scons

我正在尝试从GitHub项目构建固件,该项目使用GCC-ARM,SCons和OpenOCD(我正在使用Mac btw)。如果我从命令行运行“scons”,项目构建就好了。

但是,我想使用Eclipse来构建项目。我安装了“SConsolidator”和“GNU ARM on Eclipse”插件,我将该项目作为Scons项目导入。我也进入了项目属性 - > C / C ++一般 - >路径和符号和我在包含选项卡下添加了GNU ARM包含GNU C和GNU C ++的目录。

Pic of GNU ARM includes directory being added 但是,当我尝试构建项目时,我得到了这个:

=== Running SCons at 10/5/16 10:04 PM ====
Command line: /usr/local/bin/scons -u --jobs=8
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build/lpc11c14 build/lpc1549 build
CXX     build/BMS/src/ADT7470Fan.o
sh: arm-none-eabi-g++: command not found
CXX     build/BMS/src/main.o
sh: arm-none-eabi-g++: command not found
CXX     build/BMS/src/peripherals.o
sh: arm-none-eabi-g++: command not found
CXX     build/BMS/src/pins.o
sh: arm-none-eabi-g++: command not found
CXX     build/Cutoff/src/main.o
sh: arm-none-eabi-g++: command not found
CXX     build/Cutoff/src/peripherals.o
sh: arm-none-eabi-g++: command not found
CXX     build/Cutoff/src/pins.o
sh: arm-none-eabi-g++: command not found
scons: *** [build/BMS/src/ADT7470Fan.o] Error 127
CXX     build/Dashboard/src/can_dash.o
scons: *** [build/BMS/src/main.o] Error 127
scons: *** [build/BMS/src/peripherals.o] Error 127
scons: *** [build/BMS/src/pins.o] Error 127
scons: *** [build/Cutoff/src/main.o] Error 127
scons: *** [build/Cutoff/src/peripherals.o] Error 127
scons: *** [build/Cutoff/src/pins.o] Error 127
sh: arm-none-eabi-g++: command not found
scons: *** [build/Dashboard/src/can_dash.o] Error 127
scons: building terminated because of errors.
Duration 9132 ms.

我按照Github页面上的说明操作,它适用于其他人,所以我不确定我做错了什么。我怀疑它与$ PATH没有注册Eclipse有关,因为我使用〜/ .bash_profile将/ usr / local / gcc-arm-none-eabi-5_4-2016q3 / bin添加到$ PATH所以“scons”会在命令行工作。

1 个答案:

答案 0 :(得分:0)

您可能需要在64位用户空间上启用运行32位二进制文​​件。

对于debian:

dpkg --add-architecture i386
sudo apt-get install libstdc++6:i386