‘you package‘ is redundant with build_depend, build_export_depend, exec_depend问题解决

问题背景

在编译OpenVINS最新版本程序时,工程中package.xml采用了更新版本实现依赖关系

<?xml version="1.0"?>
<package format="3">
    <!-- Package Information -->
    <name>ov_msckf</name>
    <version>2.6.0</version>
    <description>
        Implementation of a type-based error-state Kalman filter.
    </description>
    <url type="website">https://docs.openvins.com/</url>
    <url type="bugtracker">https://github.com/rpng/open_vins/issues</url>
    <url type="repository">https://github.com/rpng/open_vins</url>

    <!-- Code Authors -->
    <author email="pgeneva@udel.edu">Patrick Geneva</author>
    <author email="keck@udel.edu">Kevin Eckenhoff</author>
    <author email="ghuang@udel.edu">Guoquan Huang</author>
    <maintainer email="pgeneva@udel.edu">Patrick Geneva</maintainer>

    <!-- Licensing -->
    <license>GNU General Public License v3.0</license>

    <!-- ROS1: Dependencies needed to compile this package. -->
    <buildtool_depend condition="$ROS_VERSION == 1">catkin</buildtool_depend>
    <depend condition="$ROS_VERSION == 1">cmake_modules</depend>
    <depend condition="$ROS_VERSION == 1">roscpp</depend>
    <depend condition="$ROS_VERSION == 1">rosbag</depend>
    <depend condition="$ROS_VERSION == 1">tf</depend>
    <depend condition="$ROS_VERSION == 1">std_msgs</depend>
    <depend condition="$ROS_VERSION == 1">sensor_msgs</depend>
    <depend condition="$ROS_VERSION == 1">geometry_msgs</depend>
    <depend condition="$ROS_VERSION == 1">nav_msgs</depend>
    <depend condition="$ROS_VERSION == 1">visualization_msgs</depend>
    <depend condition="$ROS_VERSION == 1">image_transport</depend>
    <depend condition="$ROS_VERSION == 1">cv_bridge</depend>
    <depend condition="$ROS_VERSION == 1">ov_core</depend>
    <depend condition="$ROS_VERSION == 1">ov_init</depend>

问题分析

详见ROS文档

解决方式

既不是package format="1"页不是package format="2",OpenVINS用的package format="3",但是编译时候,tag中不能含有 condition="$ROS_VERSION == 1",删除这个判断ROS版本的语句就行了,改后版本是 <depend>ov_init</depend>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值