My reoccurring libpng nightmare...
I've run into this issue several times over the years. The most recent example: My son is fired up to play Cube2 so I fetched the binary and installed it without incident. When I attempt to run:
I've spent many hours over the years googling and attempting to resolve this with other applications and games with limited success but there never seems to be a fix that consistently works.
$ libpng warning: Application was compiled with png.h from libpng-1.4.5
libpng warning: Application is running with png.c from libpng-1.2.40
libpng error: Incompatible libpng version in application and library
could not load texture packages/textures/notexture.png
could not find core textures
My first thought is to symlink the old libpng to the newest version but that creates other problems as other applications need the older version. So, just for giggles, I tried again...
$ ls -l /usr/lib/libpng*.so
lrwxrwxrwx 1 root root 11 Jul 22 01:20 /usr/lib/libpng.so -> libpng14.so
lrwxrwxrwx 1 root root 18 Oct 14 2010 /usr/lib/libpng12.so -> libpng12.so.0.40.0
lrwxrwxrwx 1 root root 18 Jul 22 01:20 /usr/lib/libpng14.so -> libpng14.so.14.8.0
...but still get the same error. I've tried uninstalling libpng altogether and re-compiling but this makes no difference either. I don't understand why some Linux apps needing libpng want to use the older libpng version when the newer version is clearly available to it in /usr/lib.
# mv libpng12.so old_libpng12.so
# ln -s libpng14.so.14.8.0 libpng12.so
Any help or suggestions appreciated. :)