OpenHarmony开发者论坛

标题: ubuntu20.04配置OpenHarmony [打印本页]

作者: ljjj1107    时间: 2024-11-1 21:06
标题: ubuntu20.04配置OpenHarmony
[md]为什么在根目录下运行build.sh会报这些错误,新手看不懂啊,求大佬指点一下


[OHOS INFO] Set cache size limit to 100.0 GB

[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/home/lj/shared/code/build/hb/containers/status.py", line 47, in wrapper
[OHOS ERROR]     return func(*args, **kwargs)
[OHOS ERROR]   File "/home/lj/shared/code/build/hb/resolver/build_args_resolver.py", line 224, in resolve_build_target
[OHOS ERROR]     raise OHOSException('There is no target component "{}" for the current product "{}"'
[OHOS ERROR] exceptions.ohos_exception.OHOSException: There is no target component "build_framework" for the current product "3568T"
[OHOS ERROR]
[OHOS ERROR] During handling of the above exception, another exception occurred:
[OHOS ERROR]
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/home/lj/shared/code/build/hb/containers/status.py", line 47, in wrapper
[OHOS ERROR]     return func(*args, **kwargs)
[OHOS ERROR]   File "/home/lj/shared/code/build/hb/resolver/interface/args_resolver_interface.py", line 40, in resolve_arg
[OHOS ERROR]     return resolve_function(target_arg, module)
[OHOS ERROR]   File "/home/lj/shared/code/build/hb/containers/status.py", line 56, in wrapper
[OHOS ERROR]     _type = exception.get_type()
[OHOS ERROR]   File "/home/lj/shared/code/build/hb/exceptions/ohos_exception.py", line 42, in get_type
[OHOS ERROR]     return status_file[str(self._code)]['type']
[OHOS ERROR] KeyError: 'type'
[OHOS ERROR]

[OHOS ERROR] Code:        0000
[OHOS ERROR]
[OHOS ERROR] Reason:      'type'
[OHOS ERROR]
[OHOS ERROR] Error Type:  UNKNOWN ERROR TYPE
[OHOS ERROR]
[OHOS ERROR] Description: NO DESCRIPTION
[OHOS ERROR]
[OHOS ERROR] Solution:    NO SOLUTION
[OHOS ERROR]
=====build  error=====
[/md]
作者: 深开鸿_王石    时间: 2024-11-4 14:08
[OHOS ERROR] raise OHOSException('There is no target component "{}" for the current product "{}"'
[OHOS ERROR] exceptions.ohos_exception.OHOSException: There is no target component "build_framework" for the current product "3568T" 你用啥命令编的,这意思就是编译对象没找到,一般参考文档最简单的就是 ./build.sh --product-name rk3568
作者: xEndLess    时间: 2024-11-6 21:17
问题解决了吗?我也遇到了这个问题。用hb build -f编译的。
作者: Hazel    时间: 2024-11-7 14:23
1.按照官方文档安装依赖库
2.运行./build/prebuilts_download.sh脚本
3.编译,./build.sh --product-name rk3568




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