cannot load shared library libpng12.so.0 on ubuntu 18.04 LTS

503 views
Skip to first unread message

Sarmad Siddiqui

unread,
Nov 15, 2018, 1:42:58 PM11/15/18
to itksnap-users
Hi,

I was trying to the run the new beta (3.8.0) on an ubuntu 18.04 LTS machine and when I tried loading itk-snap via the ./bin/itksnap executable I got the following error:

./itksnap-3.8.0-beta-20181028-Linux-gcc64/lib/snap-3.8.0-beta/ITK-SNAP: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory


While troubleshooting i noticed that if I directly opened the program located in ./lib/snap-3.80-beta/ITK-SNAP it is at least able to run the program.

Turns out the 18.04 LTS release ships with libpng16 library and  libpng12 is not available in the 18.04 repository.

I was able to download it from https://packages.ubuntu.com/xenial/amd64/libpng12-0/download and get the 3.8.0 beta to work.

Is it possible to update the beta to also use the version of the libpng library that ships with ubuntu 18.04 LTS?


------------
Secondly, and I don't know if this has anything to do with this particular library but I figured I'd mention it just in case: I'm using a 27" 4k screen (hi-dpi) and when the program is loaded via ./bin/itksnap executable I get very large fonts (200% maybe) whereas when I open it from ./lib/snap-3.80-beta/ITK-SNAP I get the appropriately sized fonts. I've attached a screenshot showing both. Maybe there is a setting that can adjust the GUI to show the right-sized interface fonts? Thanks for reading.


diff_fonts.png


Reply all
Reply to author
Forward
0 new messages