OpenHarmony开发者论坛

标题: OpenHarmony如何清理编译 [打印本页]

作者: HowardChan    时间: 2025-4-22 11:43
标题: OpenHarmony如何清理编译
[md]### 【问题描述】

1. 我希望清理所有编译,然后重新开始编译,我执行了:` ccache -C`, `rm out/ -r` 然后重新编译,出现错误:

```
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/home/chen/ohos/OpenHarmony_3.2.3_Release/build/lite/hb/__entry__.py", line 89, in main
[OHOS ERROR]     status = args[0].command(args[0])
[OHOS ERROR]   File "/home/chen/ohos/OpenHarmony_3.2.3_Release/build/lite/hb_internal/build/build.py", line 230, in exec_command
[OHOS ERROR]     return build.build(args.full,
[OHOS ERROR]   File "/home/chen/ohos/OpenHarmony_3.2.3_Release/build/lite/hb_internal/build/build_process.py", line 153, in build
[OHOS ERROR]     exec_cmd(cmd_args)
[OHOS ERROR]   File "/home/chen/ohos/OpenHarmony_3.2.3_Release/build/lite/hb_internal/build/build_process.py", line 283, in ninja_build
[OHOS ERROR]     exec_command(ninja_cmd,
[OHOS ERROR]   File "/home/chen/ohos/OpenHarmony_3.2.3_Release/build/lite/hb_internal/common/utils.py", line 97, in exec_command
[OHOS ERROR]     for line in iter(process.stdout.readline, ''):
[OHOS ERROR]   File "/home/chen/ohos/OpenHarmony_3.2.3_Release/prebuilts/python/linux-x86/3.9.2/lib/python3.9/codecs.py", line 322, in decode
[OHOS ERROR]     (result, consumed) = self._buffer_decode(data, self.errors, final)
[OHOS ERROR] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xef in position 2934: invalid continuation byte
[OHOS ERROR] Unhandled error: 'utf-8' codec can't decode byte 0xef in position 2934: invalid continuation byte
=====build  error=====
```

### 【运行环境】

硬件:RK3568
SDK版本:3.0
[/md]
作者: onefan    时间: 2025-4-22 13:33
重新bash build/prebuilts_download.sh --skip-ssl下
作者: HowardChan    时间: 2025-4-22 13:48
我主要的问题其实是,在添加了驱动服务(驱动LED的GPIO服务)后,编译完成,但是看不到我的驱动服务,后来查找,说是要删除
  1. //vendor/hihope/rk3568/hdf_config/khdf/hdf_test/hdf_hcs.hcb
  2. //out/kernel/vendor/hihope/rk3568/hdf_config/khdf/hdf_test/hdf_hcs_hex.o
  3. //out//kernel/OBJ/linux-5.10/arch/arm64/boot/Image、Image.lz4
  4. //out/rk3568/packages/phone/images/boot_linux.img
复制代码

这些文件,我删除后编译,仍然看不到我的驱动服务,而且//vendor/hihope/rk3568/hdf_config/khdf/hdf_test/hdf_hcs.hcb这个也没有重新生成,所以我不清楚什么情况,就想清理掉重新编译




欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/) Powered by Discuz! X3.5