libpng error: Incompatible libpng version in application and library
Trying to run Sauerbraten and Frozen-Bubble on Slackware 13.1 - I get ...
sauerbraten: Code:
libpng warning: Application was compiled with png.h from libpng-1.4.2 Code:
libpng warning: Application was compiled with png.h from libpng-1.4.2 |
Oh! and add to that list Supertux2 as well
Supertux2: Code:
libpng warning: Application was compiled with png.h from libpng-1.4.2 |
Hi
As said, the binary you use was compiled with a different version of the libpng shared library... You're post is lacking of a lot of context: did you try to compile it yourself ? How did you install that ? If it's a precompiled binary, it's not compatible with the runtime version installed on your slackware... If you compiled it yourself, you might have also used a 'custom' version of libpng which is NOT the version installed on your system, but I doubt you did that, and guess that you simply installed a binary. |
The version of libpng that I am using is from the source/l/libpng directory of the Slackware 13.1 DVD ISO image downloaded via Bittorent from the Slackware Website. I do recompile the libpng using the libpng.SlackBuild script supplied by the DVD but I uncomment the section:
libpng.SlackBuild Code:
# I'm ditching this to see if anyone cares. Code:
upgradepkg --reinstall --install-new /tmp/libpng-1.4.2-i486-1.txz Code:
upgradepkg --reinstall --install-new /tmp/gd-2.0.35-i486-4.txz |
Quote:
Quote:
Quote:
To reiterate what NoStressHQ asked, how are you installing the software you are trying to run (the programs listed in your first and second post)? |
Are you by any chance using a very old set of my font-rendering patches? Say, from before July of 2010? Some early versions (from around that time) had bugs that could cause this problem.
The current versions, needless to say, can run build and run Frozen Bubble just fine. I just tried it. |
(Mike_M) I recompiled libpng to begin with because I got the following error when I tried to play Sauerbraten and figure I'd try uncommenting the libpng.so.0 portion of the libpng.Slackbuild script to see if that would help ... it didn't!
Code:
libpng warning: Application was compiled with png.h from libpng-1.4.2 gd was: Code:
checking for libpng12-config... /usr/bin/libpng12-config Code:
checking for libpng12-config... no SDL_image was: Code:
-- dynamic libpng -> libpng.so.3 Code:
-- dynamic libpng -> libpng.so.14 1. I comment out everything libpng 1.2.43 from the DVD libpng.SlackBuild script then recompile and install Comment out 1.2.43 stuff: Code:
# VERSION_OLD=1.2.43 Code:
checking for libpng12-config... no 3. Recompile SDL_image.SlackBuild using this SDL_image.SlackBuild the script below Code:
#!/bin/sh Code:
# HOW TO EDIT THIS FILE: Code:
-- dynamic libpng -> libpng.so.14 5. Recompile frozen-bubble from Slackbuild.org - Works 6. Recompile Supertux2 - Works |
Oh hey .... then I reinstall the original libpng-1.4.2 from the Linux distro after I recompile gd and SDL_image
|
Give today's updated package a shot???
Slackware 13.1 Changelog: Code:
Fri Jul 29 18:22:40 UTC 2011 |
I wrote a bash script that fixes this for me, if you have an x86_64 and have not installed Alien Bob's compat32 library's then you'll need to comment out that part of the script.
Code:
#!/bin/bash Code:
#!/bin/sh parent script Code:
export DO_INSTALL="YES" Code:
if [ "$DO_INSTALL" = "YES" ]; then |
Quote:
Code:
DIR="$(cd "$(dirname "$0")" ; pwd -P)" Also a lot of double quotes are missing in the directories name, and so it doesn't handle directories with spaces... Edit: Sorry for the next remark, you used it well, I don't understand, I might have read to fast, but I can't find the place that shocked my eyes ;)... My bad... Edit 2: Oh yes, it was that: Code:
cd ${DIR}/SourceCode/libpng Code:
MERGED="${PREFIX}suffix" Code:
MERGED="$PREFIX-suffix" #<- totally valid.. There might be some more improvements, it was just a quick overview. Btw, I don't have any problem with this, but thank you anyway, this may be helpful for some users. Cheers Garry. |
All times are GMT -5. The time now is 12:50 AM. |