我正在尝试使用 CodeSourcery 中的 arm-none-eabi-XXX 为 ARM 设备交叉编译 Newlib 库,但我遇到了一些问题。运行 ./configure 和/或使其向我显示无法找到 arm-none-eabi-cc 的消息。我的路径设置正确。我可以以 root 和用户身份从终端调用 arm-none-eabi-xxx。
命令:
sudo ./configure --target=arm-none-eabi --prefix=/usr/local/arm-eabi/bin --disable-newlib-supplied-syscalls
结果:
checking for arm-none-eabi-cc... no
checking for arm-none-eabi-gcc... no
checking for arm-none-eabi-c++... no
checking for arm-none-eabi-g++... no
sudo make:
/bin/sh: arm-none-eabi-cc: command not found
但是路径设置正确...
kris@caspinol /usr/local/newlib $ arm
arm2hpdl arm-none-eabi-c++ arm-none-eabi-elfedit arm-none-eabi-gcov arm-none-eabi-ld arm-none-eabi-ranlib arm-none-eabi-sprite
arm-none-eabi-addr2line arm-none-eabi-cc arm-none-eabi-g++ arm-none-eabi-gdb arm-none-eabi-nm arm-none-eabi-readelf arm-none-eabi-strings
arm-none-eabi-ar arm-none-eabi-c++filt arm-none-eabi-gcc arm-none-eabi-gdbtui arm-none-eabi-objcopy arm-none-eabi-run arm-none-eabi-strip
arm-none-eabi-as arm-none-eabi-cpp arm-none-eabi-gcc-4.6.3 arm-none-eabi-gprof arm-none-eabi-objdump arm-none-eabi-size
kris@caspinol /usr/local/newlib $ arm
我在配置阶段是否遗漏了一些参数?
非常感谢任何帮助。
提前致谢