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里增加。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)