(一)

从鸿蒙官方下载了Hi3516的源代码,不能成功编译.
输入:
python build.py ipcamera_hi3516dv300 -b debug
提示无权限:
输入:
sudo python build.py ipcamera_hi3516dv300 -b debug
提示找不到clang
而已经确定编译工具链成功安装,环境变量成功设置。
不能编译鸿蒙源代码
ll后发现out/目录用户名和其他目录不一样。
重新解压源代码,
输入:
python build.py ipcamera_hi3516dv300 -b debug
编译成功。

(二)
输入:
sudo tar xzvf code-1.0.tar.gz
用户名称变为root:
不能编译鸿蒙源代码
输入:
python build.py ipcamera_hi3516dv300 -b debug
会提示无权限,编译失败。
不能编译鸿蒙源代码
由于前面执行编译命令时,没有加sudo,out/目录用户名为chenqh
输入:
sudo python build.py ipcamera_hi3516dv300 -b debug
提示找不到clang。
不能编译鸿蒙源代码
(三)
先后输入:
sudo tar xzvf code-1.0.tar.gz
sudo python build.py ipcamera_hi3516dv300 -b debug
提示找不到clang,不能通过编译。
不能编译鸿蒙源代码

总结:
解压源代码和编译的时候,都不能使用sudo。

相关文章:

  • 2021-08-14
  • 2022-12-23
  • 2021-06-17
  • 2021-05-05
  • 2022-12-23
  • 2021-11-28
  • 2022-01-25
猜你喜欢
  • 2021-10-18
  • 2021-10-18
  • 2021-07-27
  • 2022-12-23
  • 2021-07-15
  • 2021-10-09
  • 2021-09-08
相关资源
相似解决方案