使用zsh运行入门指南里的测试编译命令报错

Viewed 2

一、描述你遇到的问题

在这个十分钟上手链接中

https://www.bearpi.cn/dev_board/bearpi/hm/nano/software_OpenHarmony/BearPi-HM_Nano%E5%8D%81%E5%88%86%E9%92%9F%E4%B8%8A%E6%89%8B.html

按照要求导入虚拟机,使用bash是可以正常编译的,但是如果使用zsh作为shell的话,运行python build.py BearPi-HM_Nano命令,会有报错信息为:

python build.py BearPi-HM_Nano

No option 'riscv32-unknown-elf-gcc_path' in section: 'ndk'
usage:
  python build.py ipcamera_hi3516dv300
  python build.py ipcamera_hi3518ev300
  python build.py wifiiot

positional arguments:
  product               Name of the product

optional arguments:
  -h, --help            show this help message and exit
  -b BUILD_TYPE, --build_type BUILD_TYPE
                        release or debug version.
  -t [TEST [TEST ...]], --test [TEST [TEST ...]]
                        Compile test suit
  -n, --ndk             Compile ndk

二、你具体做的所有步骤结果截图

按照上面的十分钟入门指南逐步操作,跳过了ssh映射文件目录,不过这个理论上是不影响的,这个更像是仓库和环境变量的问题,暂时不知道是什么导致的

三、当前开发板状态全景照片

不需要

四、开发板串口所有日志

1 Answers

请按照教程要求的bash方式编译