阿木实验室 ubuntu 20.04 Prometheus 系统 编译问题

该博客记录了在Ubuntu上遇到的多个编译错误,包括darknet_ros、gazebo_simulator、opencv、pcl库的错误。错误涉及protobuf版本不兼容、gazebo版本问题以及PCL点云处理中的类型不匹配。博主尝试了降级gazebo版本和解决protobuf冲突,但遇到了新的问题。此外,还提到了ORB-SLAM2 Vocabulary的解压错误。解决方案包括更新protobuf、调整gazebo版本和手动复制Vocabulary文件。

1. ./compile_detection.sh

error:

make[2]: *** [CMakeFiles/darknet_ros_lib.dir/build.make:2017:CMakeFiles/darknet_ros_lib.dir/src/darknet_ros/src/YoloObjectDetector.cpp.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:946:CMakeFiles/darknet_ros_lib.dir/all] 错误 2
make: *** [Makefile:141:all] 错误 2
Invoking "make -j16 -l16" failed
[INFO] SUBMODULE object_detection_landing NOT EXIST, Skip it!
[INFO] SUBMODULE object_detection_yolov5openvino NOT EXIST, Skip it!

2. ./compile_ego.sh 

error:

/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is
 #error This file was generated by a newer version of protoc which is
  ^~~~~
In file included from /usr/include/gazebo-11/gazebo/msgs/MessageTypes.hh:136,
                 from /usr/include/gazebo-11/gazebo/msgs/msgs.hh:35,
                 from /usr/include/gazebo-11/gazebo/physics/Entity.hh:28,
                 from /usr/include/gazebo-11/gazebo/physics/Model.hh:30,
                 from /usr/include/gazebo-11/gazebo/physics/Actor.hh:27,
                 from /usr/include/gazebo-11/gazebo/physics/physics.hh:2,
                 from /home/weipengcheng/Prometheus/Simulator/gazebo_simulator/include/RealSensePlugin.h:23,
                 from /home/weipengcheng/Prometheus/Simulator/gazebo_simulator/include/gazebo_ros_realsense.h:4,
                 from /home/weipengcheng/Prometheus/Simulator/gazebo_simulator/gazebo_plugin/gazebo_ros_realsense.cpp:1:
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is
 #error This file was generated by a newer version of p

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值