• Lv3
    粉丝0

积分0 / 贡献0

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

作者动态

【大神求救】RK3588 OpenHarmony5.0.0编译报错

lele 显示全部楼层 发表于 2025-3-3 11:03:05
  1. 从 OpenHarmony 代码仓库 clone 了 v5.0.0-Release 代码未进行任何修改的情况下进行编译,编译命令为:./build.sh --product-name dayu210 --ccache --no-prebuilt-sdk,结果编译报错,下面这个报错暂时没找到相关解决方法,故而在此寻求大佬帮助!
  2. 相关的代码 编译命令:./build.sh --product-name dayu210 --ccache --no-prebuilt-sdk
  3. 运行结果、错误截图 编译报错如下:

[OHOS ERROR] [2383/66890] ACTION //device/board/hihope/dayu210/camera/vdi_impl/v4l2:camera_host_vdi_impl_1.0check(//build/toolchain/ohos:ohos_clang_arm64) [OHOS ERROR] FAILED: obj/device/board/hihope/dayu210/camera/vdi_impl/v4l2/camera_host_vdi_impl_1.0check.txt [OHOS ERROR] /usr/bin/env ../../build/templates/common/check_build_target.py --part-name device_rk3588 --subsystem-name device_rk3588 --target-path //device/board/hihope/dayu210/camera/vdi_impl/v4l2:camera_host_vdi_impl_1.0 --depfile gen/device/board/hihope/dayu210/camera/vdi_impl/v4l2/camera_host_vdi_impl_1.0check.d --output obj/device/board/hihope/dayu210/camera/vdi_impl/v4l2/camera_host_vdi_impl_1.0check.txt --compile-standard-allow-file ../preloader/dayu210/compile_standard_whitelist.json --deps //device/board/hihope/dayu210/camera/vdi_impl/v4l2/device_manager:camera_device_manager //device/board/hihope/dayu210/camera/vdi_impl/v4l2/pipeline_core:camera_pipeline_core --external-deps c_utils:utils drivers_peripheral_camera:peripheral_camera_buffer_manager drivers_peripheral_camera:peripheral_camera_device_manager drivers_peripheral_camera:peripheral_camera_metadata_manager drivers_peripheral_camera:peripheral_camera_pipeline_core drivers_peripheral_camera:peripheral_camera_utils drivers_peripheral_camera:peripheral_camera_v4l2_adapter graphic_surface:surface hdf_core:libhdf_host hdf_core:libhdf_ipc_adapter hdf_core:libhdf_utils hdf_core:libhdi hilog:libhilog ipc:ipc_single hitrace:libhitracechain drivers_interface_camera:libbuffer_producer_sequenceable_1.0 drivers_interface_camera:metadata drivers_interface_display:libdisplay_composer_proxy_1.0 hitrace:hitrace_meter ipc:ipc_single c_utils:utils [OHOS ERROR] Traceback (most recent call last): [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/out/rk3588/../../build/templates/common/check_build_target.py", line 71, in <module> [OHOS ERROR] sys.exit(main()) [OHOS ERROR] ^^^^^^ [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/out/rk3588/../../build/templates/common/check_build_target.py", line 58, in main [OHOS ERROR] _depfile = check_external_deps.check(args) [OHOS ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/build/templates/common/check_external_deps.py", line 77, in check [OHOS ERROR] check_parts_deps(args, external_part_name, parts_deps_info) [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/build/templates/common/check_external_deps.py", line 56, in check_parts_deps [OHOS ERROR] raise Exception(_warning_info) [OHOS ERROR] Exception: //device/board/hihope/dayu210/camera/vdi_impl/v4l2:camera_host_vdi_impl_1.0 depend part c_utils, need set part deps info to device_rk3588.

[OHOS ERROR] [2387/66890] ACTION //device/board/hihope/dayu210/camera/vdi_impl/v4l2/device_manager:camera_device_managercheck(//build/toolchain/ohos:ohos_clang_arm64) [OHOS ERROR] FAILED: obj/device/board/hihope/dayu210/camera/vdi_impl/v4l2/device_manager/camera_device_managercheck.txt [OHOS ERROR] /usr/bin/env ../../build/templates/common/check_build_target.py --part-name device_rk3588 --subsystem-name device_rk3588 --target-path //device/board/hihope/dayu210/camera/vdi_impl/v4l2/device_manager:camera_device_manager --depfile gen/device/board/hihope/dayu210/camera/vdi_impl/v4l2/device_manager/camera_device_managercheck.d --output obj/device/board/hihope/dayu210/camera/vdi_impl/v4l2/device_manager/camera_device_managercheck.txt --compile-standard-allow-file ../preloader/dayu210/compile_standard_whitelist.json --deps --external-deps c_utils:utils drivers_peripheral_camera:peripheral_camera_device_manager drivers_peripheral_camera:peripheral_camera_v4l2_adapter hdf_core:libhdf_utils hilog:libhilog drivers_interface_camera:metadata [OHOS ERROR] Traceback (most recent call last): [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/out/rk3588/../../build/templates/common/check_build_target.py", line 71, in <module> [OHOS ERROR] sys.exit(main()) [OHOS ERROR] ^^^^^^ [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/out/rk3588/../../build/templates/common/check_build_target.py", line 58, in main [OHOS ERROR] _depfile = check_external_deps.check(args) [OHOS ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/build/templates/common/check_external_deps.py", line 77, in check [OHOS ERROR] check_parts_deps(args, external_part_name, parts_deps_info) [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/build/templates/common/check_external_deps.py", line 56, in check_parts_deps [OHOS ERROR] raise Exception(_warning_info) [OHOS ERROR] Exception: //device/board/hihope/dayu210/camera/vdi_impl/v4l2/device_manager:camera_device_manager depend part c_utils, need set part deps info to device_rk3588.

[OHOS ERROR] [2388/66890] ACTION //device/board/hihope/dayu210/camera/vdi_impl/v4l2/pipeline_core:camera_ipp_algo_examplecheck(//build/toolchain/ohos:ohos_clang_arm64) [OHOS ERROR] FAILED: obj/device/board/hihope/dayu210/camera/vdi_impl/v4l2/pipeline_core/camera_ipp_algo_examplecheck.txt [OHOS ERROR] /usr/bin/env ../../build/templates/common/check_build_target.py --part-name device_rk3588 --subsystem-name device_rk3588 --target-path //device/board/hihope/dayu210/camera/vdi_impl/v4l2/pipeline_core:camera_ipp_algo_example --depfile gen/device/board/hihope/dayu210/camera/vdi_impl/v4l2/pipeline_core/camera_ipp_algo_examplecheck.d --output obj/device/board/hihope/dayu210/camera/vdi_impl/v4l2/pipeline_core/camera_ipp_algo_examplecheck.txt --compile-standard-allow-file ../preloader/dayu210/compile_standard_whitelist.json --deps --external-deps c_utils:utils [OHOS ERROR] Traceback (most recent call last): [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/out/rk3588/../../build/templates/common/check_build_target.py", line 71, in <module> [OHOS ERROR] sys.exit(main()) [OHOS ERROR] ^^^^^^ [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/out/rk3588/../../build/templates/common/check_build_target.py", line 58, in main [OHOS ERROR] _depfile = check_external_deps.check(args) [OHOS ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/build/templates/common/check_external_deps.py", line 77, in check [OHOS ERROR] check_parts_deps(args, external_part_name, parts_deps_info) [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/build/templates/common/check_external_deps.py", line 56, in check_parts_deps [OHOS ERROR] raise Exception(_warning_info) [OHOS ERROR] Exception: //device/board/hihope/dayu210/camera/vdi_impl/v4l2/pipeline_core:camera_ipp_algo_example depend part c_utils, need set part deps info to device_rk3588.

[OHOS ERROR] [2390/66890] ACTION //device/board/hihope/dayu210/camera/vdi_impl/v4l2/pipeline_core:camera_pipeline_corecheck(//build/toolchain/ohos:ohos_clang_arm64) [OHOS ERROR] FAILED: obj/device/board/hihope/dayu210/camera/vdi_impl/v4l2/pipeline_core/camera_pipeline_corecheck.txt [OHOS ERROR] /usr/bin/env ../../build/templates/common/check_build_target.py --part-name device_rk3588 --subsystem-name device_rk3588 --target-path //device/board/hihope/dayu210/camera/vdi_impl/v4l2/pipeline_core:camera_pipeline_core --depfile gen/device/board/hihope/dayu210/camera/vdi_impl/v4l2/pipeline_core/camera_pipeline_corecheck.d --output obj/device/board/hihope/dayu210/camera/vdi_impl/v4l2/pipeline_core/camera_pipeline_corecheck.txt --compile-standard-allow-file ../preloader/dayu210/compile_standard_whitelist.json --deps //device/board/hihope/dayu210/camera/vdi_impl/v4l2:config.c //device/board/hihope/dayu210/camera/vdi_impl/v4l2:params.c //device/board/hihope/dayu210/camera/vdi_impl/v4l2/device_manager:camera_device_manager //device/soc/rockchip/rk3588/hardware/mpp:libmpp //device/soc/rockchip/rk3588/hardware/rga:librga //third_party/libjpeg-turbo:turbojpeg_static --external-deps drivers_peripheral_camera:peripheral_camera_buffer_manager drivers_peripheral_camera:peripheral_camera_device_manager drivers_peripheral_camera:peripheral_camera_metadata_manager drivers_peripheral_camera:peripheral_camera_pipeline_core drivers_peripheral_camera:peripheral_camera_utils drivers_peripheral_camera:peripheral_camera_v4l2_adapter hdf_core:libhdf_utils hilog:libhilog c_utils:utils drivers_interface_camera:libbuffer_producer_sequenceable_1.0 drivers_interface_camera:metadata graphic_surface:surface ipc:ipc_single [OHOS ERROR] Traceback (most recent call last): [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/out/rk3588/../../build/templates/common/check_build_target.py", line 71, in <module> [OHOS ERROR] sys.exit(main()) [OHOS ERROR] ^^^^^^ [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/out/rk3588/../../build/templates/common/check_build_target.py", line 54, in main [OHOS ERROR] _depfile = check_deps_handler.check(args) [OHOS ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/build/templates/common/check_deps_handler.py", line 175, in check [OHOS ERROR] check_part_deps(args, part_pattern, path_parts_info, compile_standard_allow_info, depfiles) [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/build/templates/common/check_deps_handler.py", line 150, in check_part_deps [OHOS ERROR] raise Exception(message) [OHOS ERROR] Exception: deps validation part_name: 'device_rk3588', target: '//device/board/hihope/dayu210/camera/vdi_impl/v4l2/pipeline_core:camera_pipeline_core', dep: '//device/soc/rockchip/rk3588/hardware/mpp:libmpp' failed!!!

[OHOS ERROR] Traceback (most recent call last): [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/build/hb/containers/status.py", line 47, in wrapper [OHOS ERROR] return func(*args, *kwargs) [OHOS ERROR] ^^^^^^^^^^^^^^^^^^^^^ [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/build/hb/modules/ohos_build_module.py", line 67, in run [OHOS ERROR] raise exception [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/build/hb/modules/ohos_build_module.py", line 65, in run [OHOS ERROR] super().run() [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/build/hb/modules/interface/build_module_interface.py", line 70, in run [OHOS ERROR] raise exception [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/build/hb/modules/interface/build_module_interface.py", line 68, in run [OHOS ERROR] self._ninja() [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/build/hb/util/timer_util.py", line 30, in inner [OHOS ERROR] res = func(arg, **kwarg) [OHOS ERROR] ^^^^^^^^^^^^^^^^^^^ [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/build/hb/modules/interface/build_module_interface.py", line 125, in _ninja [OHOS ERROR] self._target_compilation() [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/build/hb/modules/ohos_build_module.py", line 102, in _target_compilation [OHOS ERROR] self.target_compiler.run() [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/build/hb/services/ninja.py", line 38, in run [OHOS ERROR] self._execute_ninja_cmd() [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/build/hb/services/ninja.py", line 69, in _execute_ninja_cmd [OHOS ERROR] SystemUtil.exec_command( [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/build/hb/util/system_util.py", line 75, in exec_command [OHOS ERROR] LogUtil.get_failed_log(log_path) [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/build/hb/util/log_util.py", line 193, in get_failed_log [OHOS ERROR] LogUtil.get_compiler_failed_log(log_path) [OHOS ERROR] File "/home/ubuntu188/share/10222013/openHarmony-5.0.2/build/hb/util/log_util.py", line 180, in get_compiler_failed_log [OHOS ERROR] raise OHOSException( [OHOS ERROR] exceptions.ohos_exception.OHOSException: COMPILE Failed! Please check error in /home/ubuntu188/share/10222013/openHarmony-5.0.2/out/rk3588/error.log, and for more build information in /home/ubuntu188/share/10222013/openHarmony-5.0.2/out/rk3588/build.log [OHOS ERROR]

[OHOS ERROR] Code: 4000 [OHOS ERROR] [OHOS ERROR] Reason: COMPILE Failed! Please check error in /home/ubuntu188/share/10222013/openHarmony-5.0.2/out/rk3588/error.log, and for more build information in /home/ubuntu188/share/10222013/openHarmony-5.0.2/out/rk3588/build.log [OHOS ERROR] [OHOS ERROR] Error Type: Ninja build error [OHOS ERROR] [OHOS ERROR] Description: An unknown error occurred while executing 'ninja -C'. [OHOS ERROR] [OHOS ERROR] Solution: no solution [OHOS ERROR] =====build error=====

  1. 我想要达到的结果 编译通过,合理解决该报错问题

【运行环境】

硬件:Ubuntu 20.04 / RK3588 平台 ROM 版本: DevEvoStudio 版本: SDK 版本:v5.0.2-Release

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

精彩评论3

润开鸿_闻飞

沙发 发表于 6 天前
rk3568的编译命令是./build.sh --product-name rk3568 --ccache --no-prebuilt-sdk,你的命令错了,下载完了后代码是否有执行repo forall -c "git lfs pull"?

lele

发表于 2025-3-6 16:53  IP属地: 云南省

回复 润开鸿_闻飞:  dayu210 应该是3588的项目

润开鸿_闻飞

发表于 2025-3-6 17:22  IP属地: 江苏省扬州市

回复 lele: dayu210应该是编译不过的,没有人维护

【2 条回复】

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

返回顶部