How to install cv_bridge without OpenCV on Ubuntu 16?

asked 2019-10-11 02:03:08 -0600

Redhwan gravatar image

I would like to run the code in OpenCV4Tegra with Jetson TX2 not in ros-kinetic-opencv. So I would like to install cv_bridge without OpenCV.

when used command : sudo apt-get install ros-kinetic-cv-bridge , it installed with opencv.

please help me or any suggestions?

edit retag flag offensive close merge delete

Comments

You can't (well, you can, but you don't want to do that).

What you should do is build cv_bridge and related packages from source against your version of OpenCV.

I believe there are quite a few Q&As on this site that go into some detail.

gvdhoorn gravatar imagegvdhoorn ( 2019-10-11 03:35:58 -0600 )edit

Yeah, I have to build cv_bridge

Redhwan gravatar imageRedhwan ( 2019-10-11 03:59:39 -0600 )edit

@gvdhoorn, I found some Q&As about cv_bridge and I achieved to build it but get another issue here

Redhwan gravatar imageRedhwan ( 2019-10-15 02:29:05 -0600 )edit

From you SO post:

I removed ros-kinetic-opencv3 by: sudo apt remove ros-kinetic-opencv3

if you do that, apt will also remove all dependencies of ros-kinetic-opencv3, which likely includes the openni packages.

That's why I wrote in my earlier comment:

you should do is build cv_bridge* and related packages from source*

You'll probably have to build openni_launch from source as well.

PS: I'm not too happy about quoting a StackOverflow post. It's perhaps better to post such questions on ROS Answers.

gvdhoorn gravatar imagegvdhoorn ( 2019-10-15 03:33:12 -0600 )edit

sorry, Q&As was unavailable for me from yesterday to before a few hours. So, I wrote there.

I don't know why? South Korea

Redhwan gravatar imageRedhwan ( 2019-10-15 04:00:41 -0600 )edit

it seems that the issue was globally

Redhwan gravatar imageRedhwan ( 2019-10-15 06:14:43 -0600 )edit