r.in.tiff - compilation failure

Markus Neteler neteler at geog.uni-hannover.de
Tue Mar 16 12:11:57 EST 1999


On Tue, 16 Mar 1999, DIETER LEHMANN wrote:
> Hello GRASS-Users,
> GRASS don't get through the compilation process:
> 
> make[1]: Entering directory `/usr/local/grass42/src421/src.alpha/raster/r.tiff/cmd'
> rm -f OBJ.linux/r.in.tiff.o
> gcc -O2 -m486 -DATT_386 -I../tools -I/usr/X11R6/include  -I/usr/X11R6/include -I/usr/local/grass42/src421/src/include   -DUSE_TERMIO -c r.in.tiff.c
> mv r.in.tiff.o OBJ.linux/r.in.tiff.o
> gcc -Wl,-s -o /usr/local/grass42/etc/bin/contrib/cmd/r.in.tiff OBJ.linux/r.in.tiff.o /usr/local/grass42/src421/src/libes/LIB.linux/libgis.a  -ltiff -ljpeg -lz -lm
> /usr/i486-linux/bin/ld: cannot open -lz: No such file or directory

> What's wrong?

Hi Dieter,

you will need some additional libraries:
r.in.tiff / r.out.tiff Requirements:

  TIFF library:
    libtiff: ftp://ftp.sgi.com/graphics/tiff/
             http://www-mipl.jpl.nasa.gov/~ndr/tiff/
         
  ZLib compression library:
    zlib:  ftp://ftp.cdrom.com/pub/infozip/zlib/zlib.tar.gz
           ftp://ftp.uu.net/graphics/png/code/
           ftp://ftp.uu.net/pub/archiving/zip/zlib
    The zlib home page is http://www.cdrom.com/pub/infozip/zlib/


  JPEG library:
   jpeg:  ftp://ftp.uu.net/graphics/jpeg/
          ftp://ftp.cdrom.com/pub/unixfreeware/graphics/       

Usually these libraries will be installed on your machine.
Otherwise get the source code and compile them.


First compile  zlib, then jpeg-lib, then TIFF-lib.
Compile every library with

   configure
   make
   make install

Best wishes

   Markus Neteler




More information about the grass-user mailing list