OpenHarmony开发者论坛

标题: OpenHarmony 4.0 beta1 编译dayu210 出错,如何解决? [打印本页]

作者: alexsuo    时间: 2024-1-21 20:43
标题: OpenHarmony 4.0 beta1 编译dayu210 出错,如何解决?
[md][OHOS INFO] Excuting ninja command: /home/suo/oh4/prebuilts/build-tools/linux-x86/bin/ninja -w dupbuild=warn -C /home/suo/oh4/out/rk3588 images

[OHOS ERROR] ninja: error: '../../drivers/peripheral/camera/vdi_base/v4l2/src/camera_dump.cpp', needed by 'obj/drivers/peripheral/camera/vdi_base/v4l2/src/camera_host_vdi_impl_1.0/camera_dump.o', missing and no known rule to make it

[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/home/suo/oh4/build/hb/containers/status.py", line 47, in wrapper
[OHOS ERROR]     return func(*args, **kwargs)
[OHOS ERROR]   File "/home/suo/oh4/build/hb/modules/ohos_build_module.py", line 67, in run
[OHOS ERROR]     raise exception
[OHOS ERROR]   File "/home/suo/oh4/build/hb/modules/ohos_build_module.py", line 65, in run
[OHOS ERROR]     super().run()
[OHOS ERROR]   File "/home/suo/oh4/build/hb/modules/interface/build_module_interface.py", line 72, in run
[OHOS ERROR]     raise exception
[OHOS ERROR]   File "/home/suo/oh4/build/hb/modules/interface/build_module_interface.py", line 70, in run
[OHOS ERROR]     self._target_compilation()
[OHOS ERROR]   File "/home/suo/oh4/build/hb/modules/ohos_build_module.py", line 103, in _target_compilation
[OHOS ERROR]     self.target_compiler.run()
[OHOS ERROR]   File "/home/suo/oh4/build/hb/services/ninja.py", line 38, in run
[OHOS ERROR]     self._execute_ninja_cmd()
[OHOS ERROR]   File "/home/suo/oh4/build/hb/services/ninja.py", line 69, in _execute_ninja_cmd
[OHOS ERROR]     SystemUtil.exec_command(
[OHOS ERROR]   File "/home/suo/oh4/build/hb/util/system_util.py", line 64, in exec_command
[OHOS ERROR]     LogUtil.get_failed_log(log_path)
[OHOS ERROR]   File "/home/suo/oh4/build/hb/util/log_util.py", line 192, in get_failed_log
[OHOS ERROR]     LogUtil.get_ninja_failed_log(log_path)
[OHOS ERROR]   File "/home/suo/oh4/build/hb/util/log_util.py", line 157, in get_ninja_failed_log
[OHOS ERROR]     raise OHOSException(
[OHOS ERROR] exceptions.ohos_exception.OHOSException: NINJA Failed! Please check error in /home/suo/oh4/out/rk3588/error.log, and for more build information in /home/suo/oh4/out/rk3588/build.log
[OHOS ERROR]

[OHOS ERROR] Code:        4016
[OHOS ERROR]
[OHOS ERROR] Reason:      NINJA Failed! Please check error in /home/suo/oh4/out/rk3588/error.log, and for more build information in /home/suo/oh4/out/rk3588/build.log
[OHOS ERROR]
[OHOS ERROR] Error Type:  ninja build error: missing and no known rule to make it
[OHOS ERROR]
[OHOS ERROR] Description: Ninja build error. The ninja build system cannot find the target.
[OHOS ERROR]
[OHOS ERROR] Solution:    Please check the target file is exists.
[OHOS ERROR]
[/md]
作者: shixiaocheng    时间: 2024-1-23 14:19
//drivers/peripheral/camera/vdi_base/v4l2/src/camera_dump.cpp文件缺失
作者: alexsuo    时间: 2024-1-29 18:27
回复 shixiaocheng: 我这个文件是存在的。
作者: byrsid    时间: 2024-1-29 19:25
同样的问题。
作者: huyucheng    时间: 2024-3-7 20:13
一模一样的log,请问有解决吗
作者: alexsuo    时间: 2024-3-24 07:17
回复 huyucheng: 截至到现在还没有任何解决方案。
作者: jzp0409    时间: 2024-3-27 09:42
主要是因为path不明确,你们把有涉及到path的地方,都 写死.不要用环境变量,那些prodct_company不靠谱。
比如:
product_config_path = "//vendor/${product_company}/${product_name}"
board_camera_path = "//device/board/${product_company}/${product_name}/camera"
换成:
product_config_path = "//vendor/hihiope/dayu210"
board_camera_path = "//device/board/hihope/dayu210/camera"




欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/) Powered by Discuz! X3.5