【问题标题】:Couldn't find "arm-elf-g++" while debugging调试时找不到“arm-elf-g++”
【发布时间】:2013-10-29 04:38:11
【问题描述】:

我正在尝试在 Eclipse 中为我的 Arduino (Teensy) 开发一个小型 c++ 程序。

我的问题是编译时出现以下错误:

make all 
Building file: ../src/main.cpp
/bin/sh: 1: arm-elf-g++: not found
make: *** [src/main.o] Fehler 127
Invoking: ARM Linux GCC C++ Compiler (GNUARM)
arm-elf-g++ -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I"/home/darcade/workspace/TeensyCore3/src" -Os -ffunction-sections -fdata-sections -Wall -Wa,-adhlns="src/main.o.lst" -fno-exceptions -fno-rtti -c -fmessage-length=0 -MMD -MP -MF"src/main.d" -MT"src/main.d" -o "src/main.o" "../src/main.cpp"

21:17:05 Build Finished (took 124ms)

我在我的电脑上搜索“arm-elf-g++”,但没有找到任何东西...

我正在我的 PC 上运行 Debian 测试。

希望你能帮助我。

lg Darcade

【问题讨论】:

  • 那你根本就没有安装需要的交叉编译器。

标签: c++ c eclipse compilation arduino


【解决方案1】:

你有哪个青少年?从错误来看,您似乎正在尝试为 ARM Cortex (Teensy 3.0) 进行编译。如果您还没有,请下载编译器:http://www.pjrc.com/teensy/td_download.html,然后确保已安装的编译器(尤其是 arm-elf-g++)在您的 $PATH 中。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-03-31
    • 1970-01-01
    • 1970-01-01
    • 2018-05-04
    • 1970-01-01
    相关资源
    最近更新 更多