我正在尝试使用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
我在配置阶段错过了一些参数吗?
非常感谢任何帮助。
提前致谢