Forum

Author Topic: ubuntu 16.10 : error while loading shared libraries: libpng12.so.0:  (Read 7583 times)

andrekje

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
an attempt to load w/o the .sh file shows that:
$ ldd ./photoscan |grep png
   libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f2394b10000)


and
$ ./photoscan
./photoscan: error while loading shared libraries: libcholmod.so:

executing the .sh file gives the error in subject.

andrekje

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
Re: ubuntu 16.10 : error while loading shared libraries: libpng12.so.0:
« Reply #1 on: October 14, 2016, 08:01:23 PM »
it won't be fooled into using a newer library v16..

sudo ln /usr/lib/x86_64-linux-gnu/libpng16.so /usr/lib/x86_64-linux-gnu/libpng12.so.0
./photoscan: /usr/lib/x86_64-linux-gnu/libpng12.so.0: version `PNG12_0' not found (required by .../photoscan-pro/./libQtGui.so.4)

andrekje

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
Re: ubuntu 16.10 : error while loading shared libraries: libpng12.so.0:
« Reply #2 on: October 14, 2016, 10:27:29 PM »
can be solved by getting the older library: http://packages.ubuntu.com/xenial/libpng12-0
but it would be sweet if you could handle the newer one too :)

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14816
    • View Profile
Re: ubuntu 16.10 : error while loading shared libraries: libpng12.so.0:
« Reply #3 on: October 15, 2016, 12:17:13 AM »
Hello andrekje,

Could you please try the following workaround, while we are checking how the ssue can be fixed:
Code: [Select]
sudo apt-get install libpng12-dev
Best regards,
Alexey Pasumansky,
Agisoft LLC

andrekje

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
Re: ubuntu 16.10 : error while loading shared libraries: libpng12.so.0:
« Reply #4 on: October 15, 2016, 12:25:22 AM »
libpng12 is no longer in repositories , 16 is..