【开源鸿蒙】 open Harmony 4.1Release代码编译报错

wx64112986a4ae8
发布于 2024-8-9 17:58
浏览
0收藏

openharmonyos4.1Release代码下载后根据教程自己创建工程,并在device里的board和soc目录做相应文件添加,安装hb工具和 ./build/prebuilts_download.sh编译后,使用hb set 选择mini系统里的开发板项目后,hb build -f编译时候会报如下错,请问大佬们,这个问题是要在哪里做修改调整?

OHOS Which product do you need? hongmei
cxl@cxl:~/op/ohos4.1release/ohos4.1$ hb build -f
[OHOS INFO] Set cache size limit to 100.0 GB
[OHOS WARNING] The target_cpu needs to be specified, default target_cpu=arm
[OHOS INFO] generated build prop info to /home/cxl/op/ohos4.1release/ohos4.1/out/preloader/hongmei/build.prop
[OHOS INFO] generated build config info to /home/cxl/op/ohos4.1release/ohos4.1/out/preloader/hongmei/build_config.json
[OHOS INFO] generated product parts info to /home/cxl/op/ohos4.1release/ohos4.1/out/preloader/hongmei/parts.json
[OHOS INFO] generated parts config info to /home/cxl/op/ohos4.1release/ohos4.1/out/preloader/hongmei/parts_config.json
[OHOS INFO] generated build gnargs prop info to /home/cxl/op/ohos4.1release/ohos4.1/out/preloader/hongmei/build_gnargs.prop
[OHOS INFO] generated features info to /home/cxl/op/ohos4.1release/ohos4.1/out/preloader/hongmei/features.json
[OHOS INFO] generated syscap info to /home/cxl/op/ohos4.1release/ohos4.1/out/preloader/hongmei/syscap.json
[OHOS INFO] generated exclusion modules info to /home/cxl/op/ohos4.1release/ohos4.1/out/preloader/hongmei/exclusion_modules.json
[OHOS INFO] generated platforms build info to /home/cxl/op/ohos4.1release/ohos4.1/out/preloader/hongmei/platforms.build
[OHOS INFO] generated subsystem config info to /home/cxl/op/ohos4.1release/ohos4.1/out/preloader/hongmei/subsystem_config.json
[OHOS INFO] generated system capability info to /home/cxl/op/ohos4.1release/ohos4.1/out/preloader/hongmei/systemcapability.json
[OHOS INFO] generated compile_standard_whitelist info to /home/cxl/op/ohos4.1release/ohos4.1/out/preloader/hongmei/compile_standard_whitelist.json
[OHOS INFO] generated compile_env_allowlist info to /home/cxl/op/ohos4.1release/ohos4.1/out/preloader/hongmei/compile_env_allowlist.json
[OHOS INFO] Checking all build args…
[OHOS INFO] subsytem config scan completed

[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR] File “/home/cxl/op/ohos4.1release/ohos4.1/build/hb/containers/status.py”, line 47, in wrapper
[OHOS ERROR] return func(*args, **kwargs)
[OHOS ERROR] File “/home/cxl/op/ohos4.1release/ohos4.1/build/hb/modules/ohos_build_module.py”, line 65, in run
[OHOS ERROR] super().run()
[OHOS ERROR] File “/home/cxl/op/ohos4.1release/ohos4.1/build/hb/modules/interface/build_module_interface.py”, line 65, in run
[OHOS ERROR] self._load()
[OHOS ERROR] File “/home/cxl/op/ohos4.1release/ohos4.1/build/hb/modules/ohos_build_module.py”, line 84, in _load
[OHOS ERROR] self.loader.run()
[OHOS ERROR] File “/home/cxl/op/ohos4.1release/ohos4.1/build/hb/services/interface/load_interface.py”, line 45, in run
[OHOS ERROR] self.post_init()
[OHOS ERROR] File “/home/cxl/op/ohos4.1release/ohos4.1/build/hb/services/loader.py”, line 117, in post_init
[OHOS ERROR] self.parts_config_info = load_ohos_build.get_parts_info(
[OHOS ERROR] File “/home/cxl/op/ohos4.1release/ohos4.1/build/hb/util/loader/load_ohos_build.py”, line 933, in get_parts_info
[OHOS ERROR] _output_parts_info(parts_config_dict,
[OHOS ERROR] File “/home/cxl/op/ohos4.1release/ohos4.1/build/hb/util/loader/load_ohos_build.py”, line 742, in _output_parts_info
[OHOS ERROR] check_subsystem_and_component(parts_info_output_path, skip_partlist_check)
[OHOS ERROR] File “/home/cxl/op/ohos4.1release/ohos4.1/build/hb/util/loader/load_ohos_build.py”, line 674, in check_subsystem_and_component
[OHOS ERROR] compare_subsystem_and_component(subsystem_name, components_name, subsystem_compoents_whitelist_info,
[OHOS ERROR] File “/home/cxl/op/ohos4.1release/ohos4.1/build/hb/util/loader/load_ohos_build.py”, line 641, in compare_subsystem_and_component
[OHOS ERROR] raise Exception(message)
[OHOS ERROR] Exception: find component device_hongmei failed, please check it in /home/cxl/op/ohos4.1release/ohos4.1/out/preloader/hongmei/parts.json.
[OHOS ERROR]

[OHOS ERROR] Code: 0000
[OHOS ERROR]
[OHOS ERROR] Reason: find component device_hongmei failed, please check it in /home/cxl/op/ohos4.1release/ohos4.1/out/preloader/hongmei/parts.json.
[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]

收藏
回复
举报
1条回复
按时间正序
/
按时间倒序
wx6340d590b9356
wx6340d590b9356

同样的问题,请问楼主是怎么解决的?

回复
2024-8-27 19:05:32
回复
    相关推荐