Forums

Full Version: conflicting libpng versions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I installed vdrift under Slackware 13.1 / 2.6.33.4-smp. The install worked fine, but when I try to start the game I get this error message:

INFO: Your video card doesn't support framebuffer objects. Disabling shaders.
libpng warning: Application was compiled with png.h from libpng-1.4.2
libpng warning: Application is running with png.c from libpng-1.2.43
libpng error: Incompatible libpng version in application and library
ERROR: Error loading texture file: /usr/local/share/games/vdrift/data/textures/weather/cubereflection-nosun.png

I don' t really know how to sort this out. I could off course uninstall libpng-1.4.2 and then reinstall vdrift, but I guess that messes up things.
Could I force vdrift to use its own libpng version during install, or force it to use it when in starts up??

Thanks in advance for any help

regards

Emile
To my knowledge, VDrift is not particularly picky about the version of libpng. It is required by SDL_gfx, not by VDrift directly.

Do you know why you have two versions of libpng installed? Where is each one installed?
Thanks for your reply
I' m pretty confused at the moment; I thought the libpng 1.2... version was installed by vdrift, but I guess I' m wrong?
In the slackware /var/log/packages I only see the libpng 1.4... version.
I removed it and try to reinstall vdrift. I first removed all possible vdrift packages such as ~/.vdrift, /usr/bin vdrift, etc. and then did the scons install again, but then I got this:
scons: `vdrift' is up to date.
scons: done building targets.
Did i overlook any config file?

Maybe I' m stupid, but I 'm pretty lost here
I think I know what's going on. You're using package vdrift-2010-06-30.tar.bz2 right? That was compiled on a different Linux distribution than yours, and seems to have been linked against a different version of libpng. I would suggest downloading the source package for 2010-06-30 and compiling it yourself. Better yet, you can just go ahead and get the development version from Subversion and build that. One catch there is that you will need to check out the data repository too. It is about 2 GB so it may take awhile.

http://wiki.vdrift.net/Getting_the_development_version
http://wiki.vdrift.net/Compiling
This should be solvable simply by installing libpng 1.2 -- the 1.2.44 package from slackware 13.0 should work.