Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python API for Carla 0.9.3 requires libpng16 incompatible with ROS #1270

Closed
anshulpaigwar opened this issue Feb 19, 2019 · 5 comments
Closed
Labels
backlog bug build system Changes related to the build system

Comments

@anshulpaigwar
Copy link

Python API for Carla 0.9.3 requires libpng16 while ROS and Gazebo still work with libpng12. When I installed libpng16 using apt-get it auto removes some important Gazebo and ROS files. I think Carla should also stick to libpng12 for a while. Is there any way to install both libpng16 and libpng12 ??

@nsubiron nsubiron self-assigned this Feb 19, 2019
@nsubiron nsubiron added bug backlog build system Changes related to the build system labels Feb 19, 2019
@nsubiron
Copy link
Collaborator

This is a known issue, unfortunately we don't know how to fix this except by removing PNG support #924. The problem is that we use Boost GIL for handling images, and as it turns out is not compatible with libpng12.

@jkewang
Copy link

jkewang commented Feb 25, 2019

I think you can reinstall ros-kinetic-gazebo* after installing Carla. I did this way and they both work well in my machine.

@anshulpaigwar
Copy link
Author

Thank you @jkewang this worked for me too.

@wattsavolt
Copy link
Contributor

Did you ever try FreeImage? Link to python wrapper: http://freeimagepy.sourceforge.net/

@rohanb2018
Copy link

rohanb2018 commented Oct 28, 2019

I actually found another solution that doesn't require reinstalling ROS. If you install the libpng16-16 package (which only has the libpng runtime library files) instead of libpng16-dev, none of the Gazebo/ROS files will be removed. And it seems that the CARLA Python API works fine with only the runtime library files: I tried the tutorial.py script and it saved the PNG files without a hitch.

Hopefully this works for others as well.

EDIT: I've only tried this with the 0.9.5 release version; not sure if it works in 0.9.6 or the latest dev version of CARLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog bug build system Changes related to the build system
Projects
Development

No branches or pull requests

6 participants