如何在Makefile.poisx中设置值



我正在尝试为nrf52840 armgcc构建nrfsdk,运行make会出现以下错误。

su@su-desktop:~/nRF/nRF5_SDK_17.1.0_ddde560/examples/peripheral/template_project/pca10056/blank/armgcc$ make
/home/su/gcc-arm-none-eabi/bin/arm-none-eabi-gcc: 1: cannot open @@P�@8: No such file
/home/su/gcc-arm-none-eabi/bin/arm-none-eabi-gcc: 1: Syntax error: Unterminated quoted string
Cannot find: '/home/su/gcc-arm-none-eabi/bin/arm-none-eabi-gcc'.
Please set values in: "/home/su/nRF/nRF5_SDK_17.1.0_ddde560/components/toolchain/gcc/Makefile.posix"
according to the actual configuration of your system.
../../../../../../components/toolchain/gcc/Makefile.common:129: *** Cannot continue.  Stop.
su@su-desktop:~/nRF/nRF5_SDK_17.1.0_ddde560/examples/peripheral/template_project/pca10056/blank/armgcc$ 
  1. 确保实际安装了arm-none-eabi-gcc工具链
arm-none-eabi-gcc --version

如果你没有,你可以在这里找到:https://developer.arm.com/downloads/-/gnu-rm

  1. 如果您确实安装了它,但不确定在哪里可以找到它,请运行
$ whereis arm-none-eabi-gcc
arm-none-eabi-gcc /opt/arm-none-eabi-gcc/bin/arm-none-eabi-gcc <-- this line can be different for you
  1. 然后您可以编辑Makefile.posix文件(例如在文本编辑器中打开它(

转到nrfSDK安装的目录,然后转到components>toolchain>gcc>Makefile.posix并将GNU_INSTALL_ROOT字段(对我来说是/opt/arm none-eabi-gcc/bin(和GNU_VERSION字段编辑为您安装的任何工具链版本(在我的情况下是9.3.1(

希望有帮助:(

相关内容

  • 没有找到相关文章

最新更新