Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
libpng12-0 not available in Ubuntu 18.04
#1
Hi!

So my hard drive crashed and I've had to reinstall Tilengine. However, previously I was running Ubuntu 16.04, now I'm trying to get it working on 18.04. After downloading and installing Tilengine, I've tried running the test.py but I get the following error:

Code:
Traceback (most recent call last):
  File "test.py", line 1, in <module>
    import tilengine as tln
  File "/home/daniel/development/game/Tilengine_linux_x86_64/samples/python/tilengine.py", line 269, in <module>
    _tln = cdll.LoadLibrary("libTilengine.so")
  File "/usr/lib/python3.6/ctypes/__init__.py", line 426, in LoadLibrary
    return self._dlltype(name)
  File "/usr/lib/python3.6/ctypes/__init__.py", line 348, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libpng12.so.0: cannot open shared object file: No such file or directory


After searching for what may be causing the issue, I found this SO answer, which essentially says that there are no packages for libpng12-0 for 17.04 upwards. 18.04 comes with libpng16-16. Installing the old version of the package is not recommended as it could break apt.

Would a solution to this be simply updating Tilengine to use the newer version of the package?
Reply


Messages In This Thread
libpng12-0 not available in Ubuntu 18.04 - by Daniel H. - 10-06-2018, 11:01 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)