OpenHarmony-v4.0-Beta1 编译报错,求助
开发板是Hi3516DV300,
$hb set
后选择的 ipcamera_hispark_taurus,然后
$hb build -f
就报错了,如下,
$ hb build -f
The target_cpu needs to be specified, default target_cpu=arm
[OHOS INFO] Set cache size limit to 100.0 GB
[OHOS INFO] root_out_dir=//out/hispark_taurus/ipcamera_hispark_taurus
[OHOS INFO] root_build_dir=//out/hispark_taurus/ipcamera_hispark_taurus
[OHOS INFO] root_gen_dir=//out/hispark_taurus/ipcamera_hispark_taurus/gen
[OHOS INFO] current_toolchain=//build/lite/toolchain:linux_x86_64_ohos_clang
[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 "/work/xxx/hi3516dv300/code-4.0-Beta1/OpenHarmony-v4.0-Beta1/OpenHarmony/out/hispark_taurus/ipcamera_hispark_taurus/build_configs/BUILD.gn".
[OHOS INFO] deps = [ "$root_build_dir/build_configs:inner_kits" ]
[OHOS INFO] ^-----------------------------------------
[OHOS INFO] ---------------------------------------------
[OHOS INFO] ccache summary:
[OHOS INFO] cache hit (direct) : 0
[OHOS INFO] cache hit (preprocessed) : 0
[OHOS INFO] cache miss : 0
[OHOS INFO] hit rate: 0.00%
[OHOS INFO] mis rate: 0.00%
[OHOS INFO] ---------------------------------------------
[OHOS INFO] file: /work/xxx/hi3516dv300/code-4.0-Beta1/OpenHarmony-v4.0-Beta1/OpenHarmony/out/hispark_taurus/ipcamera_hispark_taurus/.ninja_log not exists
[OHOS INFO] parse file fail
[OHOS ERROR] Please check build log in /work/xxx/hi3516dv300/code-4.0-Beta1/OpenHarmony-v4.0-Beta1/OpenHarmony/out/hispark_taurus/ipcamera_hispark_taurus/build.log
有遇到同样问题的伙伴吗? 怎么解决的?
既然用OpenHarmony的hb方式编译报错,
就换一种命令行方式:
$./build.sh --product-name=ipcamera_hispark_taurus --ccache
这种方式OK。
先卸载再重新安装 hb 工具:
python -m pip uninstall ohos-build
python -m pip install --user build/hb
再次回到3.2-Release版本编译时,又会出错,需要再卸载再重新安装 hb 工具:
python -m pip uninstall ohos-build
python -m pip install --user build/lite
第二个问题解决了吗,我也遇到了这个问题