[GRASSLIST:5596] Re: can't compile v.in.tig.rim in grass5

Glynn Clements glynn.clements at virgin.net
Tue Feb 18 10:49:05 EST 2003


Philipp Molzer wrote:

> I'm trying to compile rim stuff (s.db.rim, v.db.rim v.in.tig.rim, etc)
> for grass5 on Linux  2.4.18-19.8.0 i686 athlon i386 GNU/Linux.
> 
> I got s.db.rim and v.db.rim to compile by first compileing rim from
> grass4.3 (couldn't find it in the grass-5.0.0 src)
> 
> Then I did:
> mkdir /usr/src/grass-5.0.0/src.related/rim/LIB.i686-pc-linux-gnu
> ln -s /usr/lib/librim.a \
> /usr/src/grass-5.0.0/src.related/rim/LIB.i686-pc-linux-gnu/librim.a
> 
>  and was then able to get s.db.rim and v.db.rim to compile
> in /usr/src/grass-5.0.0/src.garden/grass.rim
> 
> BUT THEN...
> I did /usr/src/grass-5.0.0/src.garden/grass.tig.rim/gmake5 and wound up
> with:
> 
> make[2]: Entering directory
> `/usr/src/grass-5.0.0/src.garden/grass.tig.rim/v.in.tig.rim/cmd'
> gcc -I/usr/src/grass-5.0.0/src/include -g -O2     -c main.c -o
> OBJ.i686-pc-linux-gnu/main.o
> gcc -L/usr/src/grass-5.0.0/src/libes/LIB.i686-pc-linux-gnu  -o
> /usr/src/grass-5.0.0/dist.i686-pc-linux-gnu/etc/bin/cmd/v.in.tig.rim
> OBJ.i686-pc-linux-gnu/main.o -lgis
> /usr/src/grass-5.0.0/src/libes/LIB.i686-pc-linux-gnu/libgis.a(flate.o):
> In function `G_zlib_compress':
> /usr/src/grass-5.0.0/src/libes/gis/flate.c:351: undefined reference to
> `deflateInit_'

> Is there some equivalent to v.in.tig.rim ? It seem like the easiest way
> to import TIGER data.

The module hasn't been kept up-to-date.

You can fix the immediate problem above by adding $(XDRLIB) to the
link command in src.garden/grass.tig.rim/v.in.tig.rim/cmd/Gmakefile,
i.e.:

	$(CC) $(LDFLAGS) -o $@ main.o $(GISLIB) $(XDRLIB)

However, there may be other things which need to be updated.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-user mailing list