当前位置:   article > 正文

Apollo自动驾驶开发笔记47——apollo编译报错this rule is missing dependency declarations for the following files

this rule is missing dependency declarations for the following files include

Apollo自动驾驶开发笔记47——apollo编译报错this rule is missing dependency declarations for the following files

报错信息

(01:55:12) ERROR: /apollo/modules/perception/onboard/component/BUILD:114:11: undeclared inclusion(s) in rule ‘//modules/perception/onboard/component:perception_component_inner_camera’:
this rule is missing dependency declarations for the following files included by ‘modules/perception/onboard/component/trafficlights_perception_component.cc’:
‘bazel-out/k8-fastbuild/bin/modules/mcloud/proto/super_traffic_light.pb.h’

原因分析

这里很明显,就是提示在编译trafficlights_perception_component.cc文件时候提示super_traffic_light.pb.h文件缺少依赖,而pb.h是通过proto文件生成的,

解决办法

因此需要在/apollo/modules/perception/onboard/component/BUILD里面增加对应的proto文件,提示也说明了是在perception_component_inner_camer里增加。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/爱喝兽奶帝天荒/article/detail/899870
推荐阅读
相关标签
  

闽ICP备14008679号