ERROR ...... deps = [ “$root_build_dir/build_configs:inner_kits“ ]

项目场景:

在编译Openharmony主干版本时,编译时报错

问题描述

编译时报错如下

hb build
OHOS INFO] Set cache size limit to 100.0 GB
[OHOS INFO] root_out_dir=//out/rk3568
[OHOS INFO] root_build_dir=//out/rk3568
[OHOS INFO] root_gen_dir=//out/rk3568/gen
[OHOS INFO] current_toolchain=//build/toolchain/ohos:ohos_clang_arm
[OHOS INFO] host_toolchain=//build/toolchain/linux:clang_x64
[OHOS INFO] build configs generation is complete.
[OHOS INFO] ERROR at //build/core/gn/BUILD.gn:59:14: Unable to load "/home/ubuntu/xxxxxxxx/build_configs/BUILD.gn".
[OHOS INFO]     deps = [ "$root_build_dir/build_configs:inner_kits" ]

原因分析:

主干版本使用的hb编译器版本更新到v1.0.0版本,原有版本是hb (v0.4.6)

解决方案:

卸载原有版本的hb,安装新版本的hb,操作如下:

ohos@ubuntu:~/Ohos/master$ python -m pip uninstall ohos-build
ohos@ubuntu:~/Ohos/master$ python -m pip install --user build/hb

你可能感兴趣的:(OpenHarmony,harmonyos,华为,Openharmony)