hi3861编译失败的原因
ubuntu环境下, hi3861 获取源码后编译出现问题
> Executing task in folder test: /home/fibo/.deveco-device-tool/core/deveco-venv/bin/hos run --project-dir /home/fibo/work/harmony_dev/test --environment hi3861 <
Processing hi3861 (platform: hisilicon; board: hi3861; framework: hpm)
-----------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
builder(["out/wifiiot/Hi3861_wifiiot_app.out"], [])
Installing base package...
Analyzing bundle dependencies...
Installation error: Incompatible version of @ohos/cjson: 1.0.0
Check error details by "/home/fibo/.hpm/log/debug/debug.2021-08-28-15-17-36.log"
[WARN] - The license of @ohos/gn is gn LICENSE. Notice open-source risks.
[WARN] - The license of @ohos/mtd_utils is GPL V2.0. Notice open-source risks.
[WARN] - The license of @ohos/openssl is OpenSSL,Original SSLeay. Notice open-source risks.
[WARN] - The license of @ohos/zlib is Zlib LICENSE. Notice open-source risks.
[WARN] - The license of @ohos/llvm is llvm NOTICE. Notice open-source risks.
[WARN] - The license of @ohos/gcc_riscv32 is GPL V2. Notice open-source risks.
[WARN] - The license of @ohos/hispark_pegasus is UNLICENSED. Notice open-source risks.
Building distribution: @ohos/hispark_pegasus
/home/fibo/work/harmony_dev/test/ohos_bundles/@ohos/hispark_pegasus
/bin/sh: hb\xef\xbc\x9a\xe6\x9c\xaa\xe6\x89\xbe\xe5\x88\xb0\xe5\x91\xbd\xe4\xbb\xa4
./scripts/dist.sh: \xe8\xa1\x8c 14: hb\xef\xbc\x9a\xe6\x9c\xaa\xe6\x89\xbe\xe5\x88\xb0\xe5\x91\xbd\xe4\xbb\xa4
*** [out/wifiiot/Hi3861_wifiiot_app.out] Error -1
1. 红色这段字编码不能直接读出
2. 红色这段解析后内容是:bin/sh: hb:未找到命令./scripts/dist.sh: 行 14: hb:未找到命令
后来创建了 hi3516dv300 的项目, 编译能正常进行。 估计还是hi3861项目哪里有问题吧,请大虾帮忙分析一下。 谢谢
根据上面的报错信息,感觉像是包没有拉完整
建议步骤:
点击New DevEco Project创建工程,分别输入参数为:(Name:demo;Board:Hi3861;Bundle:none)
然后点击Open,点击HPM
找到hispark_pegasus,点击Install to project(demo)
等待下载完成后,点击Build进行编译
您可以尝试看看/home/fibo/.hpm/log/debug/debug.2021-08-28-15-17-36.log,看看目录日志里面的具体报错。一般情况来讲都是头文件地址没导或者库的地址没跟新导致错误。但具体情况具体分析,一切解决方法根据日志来解决。