非常感谢电子发烧友论坛提供这次《《OpenHarmony嵌入式系统原理与应用——基于RK2206芯片(微课视频版)》学习机会。
下面记录一下书中实验需要注意的一些细节。
1、安装hb后,执行hb --help报错:Please call hb utilities inside source root directory
解决方法:经查资料,新版不支持0.46配置,需要下载指定0.43版本:python3 -m pip install --user ohos-build==0.4.3
2、git地址为:https://gitee.com/LockzhinerElectronics/lockzhiner-rk2206-openharmony3.0lts
3、 按书中执行后还是报错:
[OHOS ERROR] ./build.sh: 16: Syntax error: "(" unexpected
[OHOS ERROR] you can check build log in /home/lugl/work/lockzhiner-rk2206-openharmony3.0lts/out/rk2206/lockzhiner-rk2206/build.log
[OHOS ERROR] command: "/home/lugl/work/lockzhiner-rk2206-openharmony3.0lts/prebuilts/build-tools/linux-x86/bin/ninja -w dupbuild=warn -C /home/lugl/work/lockzhiner-rk2206-openharmony3.0lts/out/rk2206/lockzhiner-rk2206" failed
[OHOS ERROR] return code: 1
[OHOS ERROR] execution path: /home/lugl/work/lockzhiner-rk2206-openharmony3.0lts
找了好久,还是没有解决问题,先写到这里,后面继续
|