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

libpng linking errors in electric?

asked 2011-09-26 20:28:29 -0600

Ibrahim gravatar image

Hi, I'm trying to run some stuff from ROS electric on my laptop running Ubuntu 11.04 amd64. Things like Rviz, or anything that uses images really, seems to give warnings like the following:

libpng warning: Application built with libpng-1.2.44 but running with 1.5.4

which is bizarre because I only have 1.2.44 installed, and I even checked with ldd and it should be finding the right version of libpng. I don't even know how I could have a newer version of libpng, and it can't have been statically linked to 1.5.4 because then it wouldn't have been compiled against 1.2.44, right? I would just ignore the error but occasionally things randomly crash giving PNG related errors, which seems like a bad thing to have happen. Any help is appreciated. Thanks!

edit retag flag offensive close merge delete


When I run rviz on Ubuntu 11.04 with Electric, I do not see that error. Do I need to display an image to see that error message? I have libpng 1.2.44 installed, just as you do, and the rviz binary references it.
joq gravatar image joq  ( 2011-09-27 02:03:07 -0600 )edit
I really don't have any idea why this error comes up. To clarify, it happens as soon as rviz launches when the splash screen attempts to be displayed, and in fact I don't get any images in ROS programs.
Ibrahim gravatar image Ibrahim  ( 2011-09-27 12:50:50 -0600 )edit

How did you solve this problem? I have similar problem (same warning and no icons) on Ubuntu 11.10. x64.

Roman Burdakov gravatar image Roman Burdakov  ( 2012-05-17 10:21:18 -0600 )edit

I honestly have no idea :( I want to jump in my TARDIS and slap past me for not providing a resolution. Most likely the solution ended up being nuking the setup and starting over from scratch or something like that.

Ibrahim gravatar image Ibrahim  ( 2012-11-07 22:11:13 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2011-09-30 08:16:51 -0600

glennrp gravatar image

"ldd" might help you find out what's happening.

 ldd /path/to/rviz

This will list the shared libraries that it uses.

edit flag offensive delete link more

Question Tools


Asked: 2011-09-26 20:28:29 -0600

Seen: 370 times

Last updated: Sep 30 '11