下载了ohos4.0 release源码来编译,rk3568的可以正常一下就编译过了,但是编译dayu210一开始报这个不对,于是我改了:

diff --git a/dayu210/ohos.build b/dayu210/ohos.build
index 6958983..abff761 100644
--- a/dayu210/ohos.build
+++ b/dayu210/ohos.build
@@ -13,5 +13,5 @@
       ]
     }
   },
-  "subsystem": "product_hihope"
+  "subsystem": "product_dayu210"
 }
再编译又报不对,于是我又改了:

diff --git a/dayu210/ohos.build b/dayu210/ohos.build
index b2381b0..4d1036f 100755
--- a/dayu210/ohos.build
+++ b/dayu210/ohos.build
@@ -1,5 +1,5 @@
 {
-    "subsystem": "rockchip_products",
+    "subsystem": "device_rk3588",
     "parts": {
         "rockchip_products": {
             "module_list": [


再编译还是报错:

[OHOS ERROR] [1811/52454] ACTION //device/board/hihope/dayu210/camera/vdi_impl/v4l2:camera_host_vdi_impl_1.0__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS ERROR] FAILED: obj/device/board/hihope/dayu210/camera/vdi_impl/v4l2/camera_host_vdi_impl_1.0__check.txt
[OHOS ERROR] /usr/bin/env ../../build/templates/common/check_build_target.py --part-name rockchip_products --subsystem-name rockchip_products --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.0__check.d --output obj/device/board/hihope/dayu210/camera/vdi_impl/v4l2/camera_host_vdi_impl_1.0__check.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/metadata_manager:camera_metadata_manager //device/board/hihope/dayu210/camera/vdi_impl/v4l2/pipeline_core:camera_pipeline_core //drivers/peripheral/camera/vdi_base/common/buffer_manager:camera_buffer_manager //drivers/peripheral/camera/vdi_base/common/utils:camera_utils --external-deps c_utils:utils graphic_chipsetsdk:surface hdf_core:libhdf_host hdf_core:libhdf_ipc_adapter hdf_core:libhdf_utils hdf_core:libhdi hilog:libhilog ipc:ipc_single drivers_interface_camera:libbuffer_producer_sequenceable_1.0 drivers_interface_camera:metadata hitrace:hitrace_meter ipc:ipc_single
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/out/rk3588/../../build/templates/common/check_build_target.py", line 71, in <module>
[OHOS ERROR]     sys.exit(main())
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/out/rk3588/../../build/templates/common/check_build_target.py", line 50, in main
[OHOS ERROR]     _depfile = check_part_subsystem_name.check(args)
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/build/templates/common/check_part_subsystem_name.py", line 53, in check
[OHOS ERROR]     raise Exception(message)
[OHOS ERROR] Exception: subsystem name or part name is incorrect, target is //device/board/hihope/dayu210/camera/vdi_impl/v4l2:camera_host_vdi_impl_1.0, subsystem name is rockchip_products, part name is rockchip_products
[OHOS ERROR] [1815/52454] ACTION //device/board/hihope/dayu210/camera/vdi_impl/v4l2/device_manager:camera_device_manager__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS ERROR] FAILED: obj/device/board/hihope/dayu210/camera/vdi_impl/v4l2/device_manager/camera_device_manager__check.txt
[OHOS ERROR] /usr/bin/env ../../build/templates/common/check_build_target.py --part-name rockchip_products --subsystem-name rockchip_products --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_manager__check.d --output obj/device/board/hihope/dayu210/camera/vdi_impl/v4l2/device_manager/camera_device_manager__check.txt --compile-standard-allow-file ../preloader/dayu210/compile_standard_whitelist.json --deps //device/board/hihope/dayu210/camera/vdi_impl/v4l2/driver_adapter:camera_v4l2_adapter --external-deps c_utils:utils hdf_core:libhdf_utils hilog:libhilog drivers_interface_camera:metadata
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/out/rk3588/../../build/templates/common/check_build_target.py", line 71, in <module>
[OHOS ERROR]     sys.exit(main())
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/out/rk3588/../../build/templates/common/check_build_target.py", line 50, in main
[OHOS ERROR]     _depfile = check_part_subsystem_name.check(args)
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/build/templates/common/check_part_subsystem_name.py", line 53, in check
[OHOS ERROR]     raise Exception(message)
[OHOS ERROR] Exception: subsystem name or part name is incorrect, target is //device/board/hihope/dayu210/camera/vdi_impl/v4l2/device_manager:camera_device_manager, subsystem name is rockchip_products, part name is rockchip_products
[OHOS ERROR] [1817/52454] ACTION //device/board/hihope/dayu210/camera/vdi_impl/v4l2/driver_adapter:camera_v4l2_adapter__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS ERROR] FAILED: obj/device/board/hihope/dayu210/camera/vdi_impl/v4l2/driver_adapter/camera_v4l2_adapter__check.txt
[OHOS ERROR] /usr/bin/env ../../build/templates/common/check_build_target.py --part-name rockchip_products --subsystem-name rockchip_products --target-path //device/board/hihope/dayu210/camera/vdi_impl/v4l2/driver_adapter:camera_v4l2_adapter --depfile gen/device/board/hihope/dayu210/camera/vdi_impl/v4l2/driver_adapter/camera_v4l2_adapter__check.d --output obj/device/board/hihope/dayu210/camera/vdi_impl/v4l2/driver_adapter/camera_v4l2_adapter__check.txt --compile-standard-allow-file ../preloader/dayu210/compile_standard_whitelist.json --deps --external-deps c_utils:utils hdf_core:libhdf_utils hilog:libhilog drivers_interface_camera:metadata
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/out/rk3588/../../build/templates/common/check_build_target.py", line 71, in <module>
[OHOS ERROR]     sys.exit(main())
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/out/rk3588/../../build/templates/common/check_build_target.py", line 50, in main
[OHOS ERROR]     _depfile = check_part_subsystem_name.check(args)
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/build/templates/common/check_part_subsystem_name.py", line 53, in check
[OHOS ERROR]     raise Exception(message)
[OHOS ERROR] Exception: subsystem name or part name is incorrect, target is //device/board/hihope/dayu210/camera/vdi_impl/v4l2/driver_adapter:camera_v4l2_adapter, subsystem name is rockchip_products, part name is rockchip_products
[OHOS ERROR] [1823/52454] ACTION //device/board/hihope/dayu210/camera/vdi_impl/v4l2/metadata_manager:camera_metadata_manager__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS ERROR] FAILED: obj/device/board/hihope/dayu210/camera/vdi_impl/v4l2/metadata_manager/camera_metadata_manager__check.txt
[OHOS ERROR] /usr/bin/env ../../build/templates/common/check_build_target.py --part-name rockchip_products --subsystem-name rockchip_products --target-path //device/board/hihope/dayu210/camera/vdi_impl/v4l2/metadata_manager:camera_metadata_manager --depfile gen/device/board/hihope/dayu210/camera/vdi_impl/v4l2/metadata_manager/camera_metadata_manager__check.d --output obj/device/board/hihope/dayu210/camera/vdi_impl/v4l2/metadata_manager/camera_metadata_manager__check.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 --external-deps graphic_chipsetsdk:surface hdf_core:libhdf_host hdf_core:libhdf_ipc_adapter hdf_core:libhdf_utils hdf_core:libhdi hilog:libhilog ipc:ipc_single drivers_interface_camera:metadata ipc:ipc_single
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/out/rk3588/../../build/templates/common/check_build_target.py", line 71, in <module>
[OHOS ERROR]     sys.exit(main())
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/out/rk3588/../../build/templates/common/check_build_target.py", line 50, in main
[OHOS ERROR]     _depfile = check_part_subsystem_name.check(args)
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/build/templates/common/check_part_subsystem_name.py", line 53, in check
[OHOS ERROR]     raise Exception(message)
[OHOS ERROR] Exception: subsystem name or part name is incorrect, target is //device/board/hihope/dayu210/camera/vdi_impl/v4l2/metadata_manager:camera_metadata_manager, subsystem name is rockchip_products, part name is rockchip_products
[OHOS ERROR] [1825/52454] ACTION //device/board/hihope/dayu210/camera/vdi_impl/v4l2/pipeline_core:camera_ipp_algo_example__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS ERROR] FAILED: obj/device/board/hihope/dayu210/camera/vdi_impl/v4l2/pipeline_core/camera_ipp_algo_example__check.txt
[OHOS ERROR] /usr/bin/env ../../build/templates/common/check_build_target.py --part-name rockchip_products --subsystem-name rockchip_products --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_example__check.d --output obj/device/board/hihope/dayu210/camera/vdi_impl/v4l2/pipeline_core/camera_ipp_algo_example__check.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/xzh/work/part2/Harmony01/x3588_release40/out/rk3588/../../build/templates/common/check_build_target.py", line 71, in <module>
[OHOS ERROR]     sys.exit(main())
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/out/rk3588/../../build/templates/common/check_build_target.py", line 50, in main
[OHOS ERROR]     _depfile = check_part_subsystem_name.check(args)
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/build/templates/common/check_part_subsystem_name.py", line 53, in check
[OHOS ERROR]     raise Exception(message)
[OHOS ERROR] Exception: subsystem name or part name is incorrect, target is //device/board/hihope/dayu210/camera/vdi_impl/v4l2/pipeline_core:camera_ipp_algo_example, subsystem name is rockchip_products, part name is rockchip_products
[OHOS ERROR] [1826/52454] ACTION //device/board/hihope/dayu210/camera/vdi_impl/v4l2/pipeline_core:camera_pipeline_core__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS ERROR] FAILED: obj/device/board/hihope/dayu210/camera/vdi_impl/v4l2/pipeline_core/camera_pipeline_core__check.txt
[OHOS ERROR] /usr/bin/env ../../build/templates/common/check_build_target.py --part-name rockchip_products --subsystem-name rockchip_products --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_core__check.d --output obj/device/board/hihope/dayu210/camera/vdi_impl/v4l2/pipeline_core/camera_pipeline_core__check.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/board/hihope/dayu210/camera/vdi_impl/v4l2/metadata_manager:camera_metadata_manager //drivers/peripheral/camera/vdi_base/common/buffer_manager:camera_buffer_manager //drivers/peripheral/camera/vdi_base/common/utils:camera_utils //drivers/hdf_core/adapter/uhdf2/utils:libhdf_utils //device/soc/rockchip/rk3588/hardware/mpp:libmpp //device/soc/rockchip/rk3588/hardware/rga:librga //third_party/libjpeg-turbo:turbojpeg_static --external-deps hdf_core:libhdf_utils hilog:libhilog drivers_interface_camera:libbuffer_producer_sequenceable_1.0 drivers_interface_camera:metadata graphic_chipsetsdk:surface ipc:ipc_single
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/out/rk3588/../../build/templates/common/check_build_target.py", line 71, in <module>
[OHOS ERROR]     sys.exit(main())
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/out/rk3588/../../build/templates/common/check_build_target.py", line 50, in main
[OHOS ERROR]     _depfile = check_part_subsystem_name.check(args)
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/build/templates/common/check_part_subsystem_name.py", line 53, in check
[OHOS ERROR]     raise Exception(message)
[OHOS ERROR] Exception: subsystem name or part name is incorrect, target is //device/board/hihope/dayu210/camera/vdi_impl/v4l2/pipeline_core:camera_pipeline_core, subsystem name is rockchip_products, part name is rockchip_products
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/build/hb/services/ninja.py", line 49, in _execute_ninja_cmd
[OHOS ERROR]     SystemUtil.exec_command(
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/build/hb/util/system_util.py", line 63, in exec_command
[OHOS ERROR]     raise OHOSException(
[OHOS ERROR] exceptions.ohos_exception.OHOSException: Please check build log in /home/xzh/work/part2/Harmony01/x3588_release40/out/rk3588/build.log
[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/xzh/work/part2/Harmony01/x3588_release40/build/hb/containers/status.py", line 47, in wrapper
[OHOS ERROR]     return func(*args, **kwargs)
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/build/hb/modules/ohos_build_module.py", line 67, in run
[OHOS ERROR]     raise exception
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/build/hb/modules/ohos_build_module.py", line 65, in run
[OHOS ERROR]     super().run()
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/build/hb/modules/interface/build_module_interface.py", line 72, in run
[OHOS ERROR]     raise exception
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/build/hb/modules/interface/build_module_interface.py", line 70, in run
[OHOS ERROR]     self._target_compilation()
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/build/hb/modules/ohos_build_module.py", line 103, in _target_compilation
[OHOS ERROR]     self.target_compiler.run()
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/build/hb/services/ninja.py", line 38, in run
[OHOS ERROR]     self._execute_ninja_cmd()
[OHOS ERROR]   File "/home/xzh/work/part2/Harmony01/x3588_release40/build/hb/services/ninja.py", line 52, in _execute_ninja_cmd
[OHOS ERROR]     raise OHOSException('ninja phase failed', '4000')
[OHOS ERROR] exceptions.ohos_exception.OHOSException: ninja phase failed
[OHOS ERROR]
[OHOS ERROR] Code:      4000
[OHOS ERROR]
[OHOS ERROR] Reason:    ninja phase failed
[OHOS ERROR]
[OHOS ERROR] Solution:  Please check the compile log at out/{compiling product}/build.log, If you could analyze build logs.
[OHOS ERROR]            Or you can try the following steps to solve this problem:
[OHOS ERROR]              1. cd to OHOS root path
[OHOS ERROR]              2. run 'hb clean --all' or 'rm -rf out build/resources/args/*.json'.
[OHOS ERROR]              3. repo sync
[OHOS ERROR]              4. repo forall -c 'git lfs pull'
[OHOS ERROR]              5. bash build/prebuilts_download.sh
[OHOS ERROR]              6. rebuild your product or component
[OHOS ERROR]
[OHOS ERROR]            If you still cannot solve this problem, you could post this problem on:
[OHOS ERROR]              https://gitee.com/openharmony/build/issues
[OHOS ERROR]
=====build  error=====

是不是上面两处没改对,还是有哪些配置没有注意到,大佬们帮忙瞅瞅了

Logo

社区规范:仅讨论OpenHarmony相关问题。

更多推荐