[GRASS5] release branch testers wanted (tarball provided)

Markus Neteler neteler at itc.it
Mon Aug 26 12:16:13 EDT 2002


On Mon, Aug 26, 2002 at 05:55:37PM +0200, Moritz Lennert wrote:
> On Mon, Aug 26, 2002 at 04:50:34PM +0200, Markus Neteler wrote:
> > As a follow-up:
> > 
> > my build-script now compiles separated a 24bit PNG driver:
> > http://mpa.itc.it/markus/tmp/pngdriver24_i686-pc-linux-gnu.tar.gz
> > (65kb)
> > 
> > Installation (PNG driver upgrade from 8bit to 24bit):
> > 1. start grass5
> > 2. cd $GISBASE
> > 3. mv driver/PNG driver/PNG.8bit
> > 4. tar xvfz pngdriver24_i686-pc-linux-gnu.tar.gz
> > 
> > I had to hardcode library paths inside, please let
> > me know if you get it working (ldd may help).
> > 

Thanks for the quick test!
 
> On my Debian 3.0 I had to do
> 
> ln -s /usr/lib/libgd.so /usr/local/lib
> 
> and now I get 
> 
> error while loading shared libraries: libpng12.so.0

yes, expected :-(
It is a mess with GD and version numbering.

> but I have
> 
> /usr/lib/libpng.a  
> /usr/lib/libpng.so -> libpng.so.2
> /usr/lib/libpng.so.2 -> libpng.so.2.1.0.12
> /usr/lib/libpng.so.2.1.0.12  
> /usr/lib/libpng.so.3 -> libpng.so.3.1.2.1
> /usr/lib/libpng.so.3.1.2.1 

I have:

/usr/lib/libpng.so.2.1.0.13
/usr/lib/libpng.so.2
/usr/lib/libpng.so.3.1.2.2
/usr/lib/libpng.so.3
/usr/lib/libpng.a
/usr/lib/libpng.so

When I define -lpng it still picks up libpng12.so.0:
ldd grass5.0.0relcand/dist.i686-pc-linux-gnu/driver/PNG
[...]
        /usr/local/lib/libgd.so => /usr/local/lib/libgd.so (0x40025000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0x400b4000)

There is a possibility for me to change the machine which is
in a cleaner state. I have to try later.

> When I try 
> 
> ln -s /usr/lib/libpng.so.2 /usr/lib/libpng12.so.0
> 
> the driver seems to function, but I get a black&white image, even though GRASS_TRUECOLOR=TRUE.

brrr.

> When I try
> 
> ln -s /usr/lib/libpng.so.3 /usr/lib/libpng12.so.0
> 
> I get
> 
> GRASS:~ > d.mon stop=PNG
> libpng warning: Application was compiled with png.h from libpng-1.0.12
> libpng warning: Application  is  running with png.c from libpng-1.2.1
> gd-png:  fatal libpng error: Incompatible libpng version in application and library
> Monitor 'PNG' terminated

Ok, I'll try on another machine (gd2 is currently missing there).

Thanks again,

 Markus




More information about the grass-dev mailing list