简体   繁体   English

ROS 包 cv_bridge 和 libopencv4tegra 无法在 Tegra TK1 上同时安装

[英]ROS package cv_bridge and libopencv4tegra can not install at the same time on Tegra TK1

I'm going to use libopencv4tegra with ROS on Tegra TK1 and I do this following this:我将在Tegra TK1上使用带有ROS 的libopencv4tegra ,并按照以下步骤进行操作:

http://wiki.ros.org/NvidiaJetsonTK1 . http://wiki.ros.org/NvidiaJetsonTK1

But when I install cv_bridge , it removes libopencv4tegra and libopencv4tegra-dev and when I install libopencv4tegra it removes cv_bridge .How can I solve this?但是当我安装cv_bridge ,它会删除libopencv4tegralibopencv4tegra-dev ,当我安装libopencv4tegra它会删除cv_bridge我该如何解决这个问题?

install libopencv4tegra:安装 libopencv4tegra: 在此处输入图片说明

The usual approach is to compile the packages from source.通常的方法是从源代码编译包。

To do so, depending on your ros version, you need a catkin workspace .为此,根据您的 ros 版本,您需要一个 catkin 工作区 http://wiki.ros.org/catkin/workspaces http://wiki.ros.org/catkin/workspaces

To create a catkin workspace use this tutorial: http://wiki.ros.org/catkin/Tutorials/create_a_workspace创建柳絮工作区,请使用本教程: http : //wiki.ros.org/catkin/Tutorials/create_a_workspace

Having the workspace, you need to add sources (and its dependencies) as a package.有了工作区,您需要将源(及其依赖项)添加为一个包。 To add the sources 'nicely' use the beginning of this tutorial http://wiki.ros.org/catkin/Tutorials/workspace_overlaying you don't need to create an additional workspace (for overlaying) but point 2.2, downloading the package, is what you need.要“很好地”添加源代码,请使用本教程的开头http://wiki.ros.org/catkin/Tutorials/workspace_overlaying您不需要创建额外的工作区(用于覆盖),而是点 2.2,下载包,是你所需要的。

After adding the packages, don't for get to build your workspace (catkin_make).添加软件包后,不要为 get 构建您的工作区(catkin_make)。

A different approach, which is not recommended!, is to "force" the installation by downloading the .deb file and use dpkg to manually install.另一种不推荐的方法是通过下载 .deb 文件并使用 dpkg 手动安装来“强制”安装。 This can break parts of your OS!可能会破坏您操作系统的某些部分!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM