当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
29 Star 134 Fork 313

OpenHarmony / build_lite
暂停

 / 详情

Error: /usr/bin/clang is not OHOS compiler

已完成
任务
创建于  
2020-09-11 16:15

该问题是怎么引起的?

compile the source code

重现步骤

python build.py ipcamera_hi3516dv300

报错信息

python build.py ipcamera_hi3516dv300
Error: /usr/bin/clang is not OHOS compiler, please install compiler.
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

评论 (2)

autocore_admin 创建了任务
展开全部操作日志

需要用文檔中的LLVM

cd /tools &&
curl -LO http://tools.harmonyos.com/mirrors/clang/9.0.0-34042/linux/llvm-linux-9.0.0-34042.tar &&
tar xvf /tools/llvm-linux-9.0.0-34042.tar &&
echo "export PATH=/tools/llvm/bin:$PATH" >> /etc/profile

https://gitee.com/keithyau/build_lite/blob/master/Dockerfile

是的楼上已经提到,需要下载网站说明中LLVM, 解压以后配置到当前环境变量中

获取工具

环境搭建

Xingwa 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
Python
1
https://gitee.com/openharmony/build_lite.git
git@gitee.com:openharmony/build_lite.git
openharmony
build_lite
build_lite

搜索帮助