HarmonyOS 鸿蒙Next arm架构设备使用hb build -f编译失败
HarmonyOS 鸿蒙Next arm架构设备使用hb build -f编译失败
root@harmoyos:~/work/OpenHOS# hb build -f
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR] File “/root/.local/lib/python3.8/site-packages/hb/main.py”, line 80, in main
[OHOS ERROR] status = args.command(args)
[OHOS ERROR] File “/root/.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 “/root/.local/lib/python3.8/site-packages/hb/build/build_process.py”, line 136, in build
[OHOS ERROR] exec_cmd(cmd_args)
[OHOS ERROR] File “/root/.local/lib/python3.8/site-packages/hb/build/build_process.py”, line 188, in gn_build
[OHOS ERROR] exec_command(gn_cmd, log_path=self.config.log_path)
[OHOS ERROR] File “/root/.local/lib/python3.8/site-packages/hb/common/utils.py”, line 98, in exec_command
[OHOS ERROR] process = subprocess.Popen(cmd,
[OHOS ERROR] File “/usr/lib/python3.8/subprocess.py”, line 858, in init
[OHOS ERROR] self._execute_child(args, executable, preexec_fn, close_fds,
[OHOS ERROR] File “/usr/lib/python3.8/subprocess.py”, line 1704, in _execute_child
[OHOS ERROR] raise child_exception_type(errno_num, err_msg, err_filename)
[OHOS ERROR] OSError: [Errno 8] Exec format error: ‘/root/work/OpenHOS/prebuilts/build-tools/linux-x86/bin/gn’
[OHOS ERROR] Unhandled error: [Errno 8] Exec format error: ‘/root/work/OpenHOS/prebuilts/build-tools/linux-x86/bin/gn’
报错说gn工具架构不对,在官方那边没有找到arm架构使用的gn。请问怎么处理
更多关于HarmonyOS 鸿蒙Next arm架构设备使用hb build -f编译失败的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html