当我从 Contiki 编译一个例子时出错
Error when I compile an example from Contiki
当我在 Contiki 上 运行 这个命令时
sudo make TARGET=srf06-cc26xx BOARD=sensortag/cc2650 cc26xx-demo.bin CPU_FAMILY=cc26xx
它 returns 出现以下错误:
CC ../../platform/srf06-cc26xx/./contiki-main.c make: arm-none-eabi-gcc: Command not found make: *** [obj_srf06-cc26xx/contiki-main.o] Error 127
阅读目标平台的 srf06-cc26xx
自述文件:https://github.com/contiki-os/contiki/tree/master/platform/srf06-cc26xx
首先,您需要从 https://launchpad.net/gcc-arm-embedded
安装 GNU ARM 嵌入式工具链
如果安装了它,请确保 arm-none-eabi-gcc
在您的 PATH
环境变量中。
您还需要来自 http://srecord.sourceforge.net 的 srecord
应用程序(对于 Linux,可以通过 apt-get
获得 srecord
包)。
为了 运行 make,如果您的 contiki 存储库在一个目录中,您的用户拥有所有权限,那么您不需要 运行 它作为 sudo。
要安装 arm-none-eabi-gcc 包,然后 运行:
sudo apt-get install arm-none-eabi-gcc
安装完成后,可以查看安装的版本:
arm-none-eabi-gcc --version
你的输出应该是这样的(这是针对 Ubuntu 16.04):
arm-none-eabi-gcc (15:4.9.3+svn231177-1) 4.9.3 20150529 (prerelease)
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
希望对您有所帮助!
Br,弗吉尼亚州
当我在 Contiki 上 运行 这个命令时
sudo make TARGET=srf06-cc26xx BOARD=sensortag/cc2650 cc26xx-demo.bin CPU_FAMILY=cc26xx
它 returns 出现以下错误:
CC ../../platform/srf06-cc26xx/./contiki-main.c make: arm-none-eabi-gcc: Command not found make: *** [obj_srf06-cc26xx/contiki-main.o] Error 127
阅读目标平台的 srf06-cc26xx
自述文件:https://github.com/contiki-os/contiki/tree/master/platform/srf06-cc26xx
首先,您需要从 https://launchpad.net/gcc-arm-embedded
安装 GNU ARM 嵌入式工具链如果安装了它,请确保 arm-none-eabi-gcc
在您的 PATH
环境变量中。
您还需要来自 http://srecord.sourceforge.net 的 srecord
应用程序(对于 Linux,可以通过 apt-get
获得 srecord
包)。
为了 运行 make,如果您的 contiki 存储库在一个目录中,您的用户拥有所有权限,那么您不需要 运行 它作为 sudo。 要安装 arm-none-eabi-gcc 包,然后 运行:
sudo apt-get install arm-none-eabi-gcc
安装完成后,可以查看安装的版本:
arm-none-eabi-gcc --version
你的输出应该是这样的(这是针对 Ubuntu 16.04):
arm-none-eabi-gcc (15:4.9.3+svn231177-1) 4.9.3 20150529 (prerelease)
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
希望对您有所帮助!
Br,弗吉尼亚州