hb安装编译报错
我用的是vm然后ubuntu22.04,按照步骤一步步搭建报错的地方百度都能找到然后都解决了,到hb编译sdk这一步就我百度也百度不到不知道有没有大佬能解决的:
编译sdk,在源码根目录openHarmony_3.0LTS下执行以下指令
hb build -f又报错了
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR] File “/home/wsq/.local/lib/python3.8/site-packages/hb/main.py”, line 80, in main
[OHOS ERROR] status = args.command(args)
[OHOS ERROR] File “/home/wsq/.local/lib/python3.8/site-packages/hb/build/build.py”, line 113, in exec_command
[OHOS ERROR] return build.build(args.full, patch=args.patch, cmd_args=cmd_args)
[OHOS ERROR] File “/home/wsq/.local/lib/python3.8/site-packages/hb/build/build_process.py”, line 126, in build
[OHOS ERROR] cmd_list = self.get_cmd(full_compile, patch, ninja)
[OHOS ERROR] File “/home/wsq/.local/lib/python3.8/site-packages/hb/build/build_process.py”, line 156, in get_cmd
[OHOS ERROR] remove_path(self.config.out_path)
[OHOS ERROR] File “/home/wsq/.local/lib/python3.8/site-packages/hb/common/utils.py”, line 47, in remove_path
[OHOS ERROR] shutil.rmtree(path)
[OHOS ERROR] File “/usr/local/lib/python3.8/shutil.py”, line 708, in rmtree
[OHOS ERROR] _rmtree_safe_fd(fd, path, onerror)
[OHOS ERROR] File “/usr/local/lib/python3.8/shutil.py”, line 645, in _rmtree_safe_fd
[OHOS ERROR] _rmtree_safe_fd(dirfd, fullname, onerror)
[OHOS ERROR] File “/usr/local/lib/python3.8/shutil.py”, line 645, in _rmtree_safe_fd
[OHOS ERROR] _rmtree_safe_fd(dirfd, fullname, onerror)
[OHOS ERROR] File “/usr/local/lib/python3.8/shutil.py”, line 645, in _rmtree_safe_fd
[OHOS ERROR] _rmtree_safe_fd(dirfd, fullname, onerror)
[OHOS ERROR] [Previous line repeated 2 more times]
[OHOS ERROR] File “/usr/local/lib/python3.8/shutil.py”, line 665, in _rmtree_safe_fd
[OHOS ERROR] onerror(os.unlink, fullname, sys.exc_info())
[OHOS ERROR] File “/usr/local/lib/python3.8/shutil.py”, line 663, in _rmtree_safe_fd
[OHOS ERROR] os.unlink(entry.name, dir_fd=topfd)
[OHOS ERROR] PermissionError: [Errno 13] Permission denied: ‘hdf.hcb’
[OHOS ERROR] Unhandled error: [Errno 13] Permission denied: ‘hdf.hcb’