433 Star 2.3K Fork 518

OpenHarmony / docs

执行python build.py wifiiot提示No option 'riscv32-unknown-elf-gcc_path' in section: 'ndk'

需求
已完成
yazong  Opened this issue

该问题是怎么引起的?

源码包根路径下执行python build.py wifiiot
操作系统版本
Linux version 5.4.0-48-generic (buildd@lcy01-amd64-023) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu118.04)) #5218.04.1-Ubuntu

重现步骤

源码包根路径下执行python build.py wifiiot

报错信息

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

#请问我是在操作系统安装riscv32-unknown-elf-gcc这个吗?我找到了这个https://github.com/riscv/riscv-gnu-toolchain,根据这个安装对吗?还是其他解决方案?谢谢!

Attachments
4853901 rexhuang936 1601126895 8054015 wx 9846855d06 1599814808 total 5 participants

Comments (5)

NEEN 2020-09-28 14:34 member

@yazong 问题是否可以参考文档解决?
谢谢~

8054015 wx 9846855d06 1599814808
Wu.Right 2020-10-14 17:23

这个是按照官方文档“https://device.harmonyos.com/cn/docs/start/introduce/oem_wifi_start_helloword-0000001051930719”中描述,通过VSCode ssh user@ipaddr登陆到Linux服务器后,在终端窗口中执行“python build.py wifiiot”出现的吧? 我也遇到,有解决方法么?

8054015 wx 9846855d06 1599814808
Wu.Right 2020-10-14 17:25

@yazong 下载这个啊:
https://repo.huaweicloud.com/harmonyos/compiler/gcc_riscv32/7.3.0/linux/gcc_riscv32-linux-7.3.0.tar.gz

@RexHuang936 已经下载安装,通过VSCode ssh user@ipaddr登陆到Linux服务器后,编译会出现此问题,直接在Linux对应目录下执行则不会报这个错误

Sign in to comment

Assignees
Labels
product-question
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
1
https://git.oschina.net/openharmony/docs.git
git@git.oschina.net:openharmony/docs.git
openharmony
docs
docs

Search