• Lv0
    粉丝0

积分1 / 贡献0

提问1答案被采纳0文章0

作者动态

    【求助】【OpenHarmony出现问题subsystem name config incorrect in ······】

    Ashfud1e 显示全部楼层 发表于 2024-5-12 17:21:25

    [OHOS ERROR] Traceback (most recent call last): [OHOS ERROR] File "/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/containers/status.py", line 47, in wrapper [OHOS ERROR] return func(*args, **kwargs) [OHOS ERROR] File "/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/modules/ohos_build_module.py", line 67, in run [OHOS ERROR] raise exception [OHOS ERROR] File "/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/modules/ohos_build_module.py", line 65, in run [OHOS ERROR] super().run() [OHOS ERROR] File "/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/modules/interface/build_module_interface.py", line 72, in run [OHOS ERROR] raise exception [OHOS ERROR] File "/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/modules/interface/build_module_interface.py", line 65, in run [OHOS ERROR] self._load() [OHOS ERROR] File "/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/modules/ohos_build_module.py", line 84, in _load [OHOS ERROR] self.loader.run() [OHOS ERROR] File "/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/services/interface/load_interface.py", line 45, in run [OHOS ERROR] self.post_init() [OHOS ERROR] File "/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/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/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/util/loader/load_ohos_build.py", line 903, in get_parts_info [OHOS ERROR] _parts_variants = build_loader.parts_variants() [OHOS ERROR] File "/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/util/loader/load_ohos_build.py", line 540, in parts_variants [OHOS ERROR] self.parse() [OHOS ERROR] File "/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/util/loader/load_ohos_build.py", line 531, in parse [OHOS ERROR] subsystem_config, parts_path_dict = self._merge_build_config() [OHOS ERROR] File "/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/build/hb/util/loader/load_ohos_build.py", line 502, in _merge_build_config [OHOS ERROR] raise OHOSException("subsystem name config incorrect in '{}', build file subsystem name is {}," [OHOS ERROR] exceptions.ohos_exception.OHOSException: subsystem name config incorrect in '/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/device/qemu/x86_64_virt/linux/ohos.build', build file subsystem name is device_x86_64_virt,configured subsystem name is device_qemu-x86_64-linux. [OHOS ERROR]

    [OHOS ERROR] Code: 2014 [OHOS ERROR] [OHOS ERROR] Reason: subsystem name config incorrect in '/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/device/qemu/x86_64_virt/linux/ohos.build', build file subsystem name is device_x86_64_virt,configured subsystem name is device_qemu-x86_64-linux. [OHOS ERROR] [OHOS ERROR] Error Type: UNKNOWN ERROR TYPE [OHOS ERROR] [OHOS ERROR] Description: NO DESCRIPTION [OHOS ERROR] [OHOS ERROR] Solution: UNKNOWN REASON [OHOS ERROR] =====build error=====

    之前出现subsystem name config incorrect in时按照https://blog.csdn.net/aa120515692/article/details/133806238改了一遍白名单,还是没用

    您尚未登录,无法参与评论,登录后可以:
    参与开源共建问题交流
    认同或收藏高质量问答
    获取积分成为开源共建先驱

    精彩评论3

    深开鸿_王石

    沙发 发表于 2024-5-13 13:59:00
    加子系统是要在build下改config文件的,参考 - https://gitee.com/openharmony/do ... -build-subsystem.md

    润开鸿_梁开祝

    板凳 发表于 2024-5-13 15:49:52
    [OHOS ERROR] Reason: subsystem name config incorrect in '/home/yuwwh/Downloads/OpenHarmony-v4.1-Release/OpenHarmony/device/qemu/x86_64_virt/linux/ohos.build', build file subsystem name is device_x86_64_virt,configured subsystem name is device_qemu-x86_64-linux.


    你把 //device/qemu/x86_64_virt/linux/ohos.build 这个文件里的 subsystem 字段修改为  device_qemu-x86_64-linux 再试试看。

    lakewater

    地板 发表于 2024-5-24 11:03:13
    我也遇到了这个问题,修改“ //device/qemu/x86_64_virt/linux/ohos.build 这个文件里的 subsystem 字段修改为  device_qemu-x86_64-linux”没有起作用, 请问解决了吗?

    Copyright   ©2023  OpenHarmony开发者论坛  京ICP备2020036654号-3 |技术支持 Discuz!

    返回顶部