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

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里增加。

猜你喜欢

转载自blog.csdn.net/mao_hui_fei/article/details/130379990