openharmony 4.0上适配USB camera遇到编译报错
根据Openharmony 4.1 release Camera HDF 介绍_DarkKnight888-Laval社区 (csdn.net)适配的
/home/xiangyang/code/ohos/device/board/orangepi/aipro/ohos.build文件更改之后就报错,
ohos.build:
1 {
2 "subsystem": "device_aipro",
3 "parts": {
4 "device_aipro": {
5 "module_list": [
6 "//device/board/orangepi/${device_name}:aipro_group",
7 "//device/board/orangepi/${device_name}/camera/vdi_impl/v4l2:camera_board_vdi_impl"
8 ],
9 "inner_kits": []
10 }
11 }
12 }
您需要先 登录 才能评论/回答
全部评论(11)
完整build.log日志可以贴一下
2024-12-23 15:24:31
引用:“Command: /usr/bin/env /home/openharmony/ohos/build/templates/common/get_subsystem_name.py --part-name rockchip_products --part-subsystem-info-file build_configs/parts_info/part_subsystem.json Returned”
谢谢哥,我关注报错去了,没看日志,嘿嘿
引用:“这个”
Command: /usr/bin/env /home/openharmony/ohos/build/templates/common/get_subsystem_name.py --part-name rockchip_products --part-subsystem-info-file build_configs/parts_info/part_subsystem.json
Returned 1.
stderr:
Traceback (most recent call last):
File "/home/openharmony/ohos/build/templates/common/get_subsystem_name.py", line 52, in <module>
sys.exit(main())
File "/home/openharmony/ohos/build/templates/common/get_subsystem_name.py", line 45, in main
raise Exception("subsystem name error, part_name='{}'".format(
Exception: subsystem name error, part_name='rockchip_products'
See //build/templates/cxx/prebuilt.gni:176:3: whence it was called.
ohos_copy(target_name) {
^-----------------------
See //device/soc/rockchip/rk3568/hardware/mpp/BUILD.gn:17:1: whence it was called.
ohos_prebuilt_shared_library("libmpp") {
^---------------------------------------
See //device/board/orangepi/aipro/camera/vdi_impl/v4l2/pipeline_core/BUILD.gn:141:5: which caused the file to be included.
"//device/soc/rockchip/rk3568/hardware/mpp:libmpp",
^-------------------------------------------------
请问报的是什么错误
2024-12-23 14:10:33
引用:“[OHOS ERROR] Traceback (most recent call last): [OHOS ERROR] File "/home/openharmony/ohos/build/hb/services/gn.py", line 176, in _execute_gn_gen_cmd [OHOS ERROR] SystemUtil.exec_command(gn_g”
这里看不出有什么问题,能发更详细的log吗
按照4.1这个链接适配4.0,vender下的uhdf下的camera和device/board/orangepi/aipro/camera都是从rk3568复制过来改的
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR] File "/home/openharmony/ohos/build/hb/services/gn.py", line 176, in _execute_gn_gen_cmd
[OHOS ERROR] SystemUtil.exec_command(gn_gen_cmd, self.config.log_path)
[OHOS ERROR] File "/home/openharmony/ohos/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/openharmony/ohos/out/aipro/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/openharmony/ohos/build/hb/containers/status.py", line 47, in wrapper
[OHOS ERROR] return func(*args, **kwargs)
[OHOS ERROR] File "/home/openharmony/ohos/build/hb/services/gn.py", line 178, in _execute_gn_gen_cmd
[OHOS ERROR] raise OHOSException('GN phase failed', '3000')
[OHOS ERROR] exceptions.ohos_exception.OHOSException: GN phase failed
[OHOS ERROR]
[OHOS ERROR] Code: 3000
[OHOS ERROR]
[OHOS ERROR] Reason: GN 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=====
这个
查看全部11条回答/评论
