ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Cannot view image using image_view on ubuntu 14.04

asked 2014-10-14 10:01:37 -0500

takb gravatar image

I have ros indigo installed on ubuntu 14.04. When I run the command

rosrun image_view image_view image:=/cam1/image_raw

I get the error

/opt/ros/indigo/lib/image_view/image_view: error while loading shared libraries: libavcodec.so.53: cannot open shared object file: No such file or directory

How do I get past this ?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2014-10-14 15:58:06 -0500

ahendrix gravatar image

It looks like image_view is trying to load an old library. Are you sure all of your packages are up to date?

Try:

sudo apt-get update
sudo apt-get dist-upgrade
edit flag offensive delete link more
-1

answered 2014-10-15 03:38:37 -0500

takb gravatar image

I had to manually install the various codec files. Used the solution given here

It works fine now.

edit flag offensive delete link more

Comments

That is wrong. You should NEVER have to manually install libraries that a binary ROS package depends on. It indicates that either your apt sources are set up incorrectly, your packages are out of date, or there's a bug in image_view.

ahendrix gravatar image ahendrix  ( 2014-10-15 11:03:47 -0500 )edit

Did you try to do a dist-upgrade before installing packages manually?

ahendrix gravatar image ahendrix  ( 2014-10-15 11:04:16 -0500 )edit

Yes. I tried dist-upgrade but that didn't help. I am pretty sure the problem isn't with ROS, since I niticed that opencv had also begun to show the same error.

takb gravatar image takb  ( 2014-10-15 12:09:30 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-10-14 10:01:37 -0500

Seen: 1,061 times

Last updated: Oct 15 '14