讨论广场 问答详情
【OH6.0】dayu210编译报错
小溜溜9 2025-11-11 16:44:08
434 评论 分享

使用命令repo init -u https://gitcode.com/openharmony/manifest -b OpenHarmony-6.0-Release --no-repo-verify下载的6.0 openharmony源码,什么也没有改,编译报错如下
 

[OHOS INFO] [GN] usb_serial_ddk

[OHOS ERROR] [GN] ERROR at //build/config/components/ets_frontend/ets2abc_config.gni:261:9: OHOS component : (sdk) not found.

[OHOS ERROR] [GN]         ohos_ets_api_deps,

[OHOS ERROR] [GN]         ^----------------

[OHOS ERROR] [GN] See //base/sensors/miscdevice/frameworks/js/ani/BUILD.gn:45:1: whence it was called.

[OHOS ERROR] [GN] generate_static_abc("vibrator_abc") {

[OHOS ERROR] [GN] ^------------------------------------

[OHOS ERROR] [GN] See //build/ohos/ohos_part.gni:25:16: which caused the file to be included.

[OHOS ERROR] [GN]     _deps += [ get_label_info(module_label, "label_with_toolchain") ]

[OHOS ERROR] [GN]                ^--------------------------------------------------

[OHOS ERROR] [GN] bundle_framework_power_mgr_enable = true

[OHOS ERROR] [GN] bundle_framework_graphics = true

[OHOS ERROR] [GN] bundle_framework_free_install = true

[OHOS ERROR] [GN] bundle_framework_default_app = true

[OHOS ERROR] [GN] bundle_framework_launcher = true

[OHOS ERROR] [GN] bundle_framework_sandbox_app = true

[OHOS ERROR] [GN] bundle_framework_quick_fix = true

[OHOS ERROR] [GN] bundle_framework_app_control = true

[OHOS ERROR] [GN] distributed_bundle_framework = true

[OHOS ERROR] [GN] ability_runtime_enable = true

[OHOS ERROR] [GN] account_enable = true

[OHOS ERROR] [GN] configpolicy_enable = true

[OHOS ERROR] [GN] global_resmgr_enable = true

[OHOS ERROR] [GN] hicollie_enable = true

[OHOS ERROR] [GN] support_jsapi = true

[OHOS ERROR] [GN] hisysevent_enable = true

[OHOS ERROR] [GN] bundle_framework_overlay_install = true

[OHOS ERROR] [GN] bundle_framework_bundle_resource = true

[OHOS ERROR] [GN] verify_abc_enabled = true

[OHOS ERROR] [GN] user_auth_framework_impl_enabled = true

[OHOS ERROR] [GN] ethernet_service

[OHOS ERROR] [GN] time_system_ability_static output_values: ["//out/rk3588/gen/base/time/time_service/services/time_service_proxy.cpp", "//out/rk3588/gen/base/time/time_service/services/time_service_stub.cpp", "//out/rk3588/gen/base/time/time_service/services/timer_callback_proxy.cpp", "//out/rk3588/gen/base/time/time_service/services/timer_callback_stub.cpp"]

[OHOS ERROR] [GN] hisysevent_usage = false

[OHOS ERROR] [GN] ans_hitrace_usage = true

[OHOS ERROR] [GN] location_agnss

[OHOS ERROR] [GN] backends_action is exec

[OHOS ERROR] [GN] daudio

[OHOS ERROR] [GN] daudioext

[OHOS ERROR] [GN] daudioext

[OHOS ERROR] [GN] daudioext

[OHOS ERROR] [GN] ************libhilog_base use_musl ***************

[OHOS ERROR] [GN] location_gnss

[OHOS ERROR] [GN] ["--haptobin", "../../developtools/packing_tool/adapter/ohos", "--haptobinOutput", "obj/developtools/packing_tool/jar/haptobin_tool.jar", "--unpackOutput", "obj/developtools/packing_tool/jar/app_unpacking_tool.jar", "--packOutput", "obj/developtools/packing_tool/jar/app_packing_tool.jar", "--outpath", "obj/developtools/packing_tool/jar", "--checkOutput", "obj/developtools/packing_tool/jar/app_check_tool.jar", "--toolchain", "//build/toolchain/ohos:ohos_clang_arm64", "--compileTarget", "image"]

[OHOS ERROR] [GN] av_codec_support_fcodec = true

[OHOS ERROR] [GN] av_codec_support_avc_encoder = true

[OHOS ERROR] [GN] av_codec_support_hevc_decoder = true

[OHOS ERROR] [GN] av_codec_support_hcodec = true

[OHOS ERROR] [GN] av_codec_enable_start_stop_on_demand = false

[OHOS ERROR] [GN] has_hisysevent_part = true

[OHOS ERROR] [GN] event ces_hitrace_usage = true

[OHOS ERROR] [GN] Debug info gen_utils_abc file path:  //out/rk3588/obj/commonlibrary/ets_utils/js_concurrent_module/utils/utils.abc

[OHOS ERROR] [GN] Traceback (most recent call last):
[OHOS ERROR] [GN]   File "/home/apple/openharmony/oh6.0/build/hb/containers/status.py", line 47, in wrapper
[OHOS ERROR] [GN]     return func(*args, **kwargs)
[OHOS ERROR] [GN]            ^^^^^^^^^^^^^^^^^^^^^
[OHOS ERROR] [GN]   File "/home/apple/openharmony/oh6.0/build/hb/services/gn.py", line 133, in _execute_gn_gen_cmd
[OHOS ERROR] [GN]     SystemUtil.exec_command(gn_gen_cmd, self.config.log_path)
[OHOS ERROR] [GN]   File "/home/apple/openharmony/oh6.0/build/hb/util/system_util.py", line 129, in exec_command
[OHOS ERROR] [GN]     LogUtil.get_failed_log(log_path)
[OHOS ERROR] [GN]   File "/home/apple/openharmony/oh6.0/build/hb/util/log_util.py", line 207, in get_failed_log
[OHOS ERROR] [GN]     LogUtil.get_gn_failed_log(log_path)
[OHOS ERROR] [GN]   File "/home/apple/openharmony/oh6.0/build/hb/util/log_util.py", line 153, in get_gn_failed_log
[OHOS ERROR] [GN]     raise OHOSException(
[OHOS ERROR] [GN] exceptions.ohos_exception.OHOSException: GN Failed! Please check error in /home/apple/openharmony/oh6.0/out/rk3588/error.log, and for more build information in /home/apple/openharmony/oh6.0/out/rk3588/build.log
[OHOS ERROR] [GN] 

[OHOS ERROR] [GN] Code:        3000
[OHOS ERROR] [GN] 
[OHOS ERROR] [GN] Reason:      GN Failed! Please check error in /home/apple/openharmony/oh6.0/out/rk3588/error.log, and for more build information in /home/apple/openharmony/oh6.0/out/rk3588/build.log
[OHOS ERROR] [GN] 
[OHOS ERROR] [GN] Error Type:  UNKNOWN
[OHOS ERROR] [GN] 
[OHOS ERROR] [GN] Description: An unknown error occurred while executing 'gn gen'.
[OHOS ERROR] [GN] 
[OHOS ERROR] [GN] Solution:    There is no solution available. You can check the 'gn_error.log' in the output directory for more information
[OHOS ERROR] [GN] 
=====build  error=====

6.0版本支持dayu210 也就是rk3588板子吗


 

 

434 评论 分享
写回答
全部评论(2)
2 楼

在OpenHarmony/vendor/hihope/dayu210/config.json中添加:

{

      "subsystem": "sdk",

      "components": [

        {

          "component": "sdk",

          "features": []

        }

      ]

    },

1
2025-11-11 17:45:21
2025-11-11 17:53:44
问题解决了记得点“采纳该答案"哦
2025-11-11 17:53:44