[GRASS5] GRASS.1: v.out.org compilation error
Markus Neteler
neteler at itc.it
Wed May 21 11:29:35 EDT 2003
On Wed, May 21, 2003 at 05:14:07PM +0200, Moritz Lennert wrote:
> Hello,
>
> Using the latest CVS versions of GRASS5.0, GRASS5.1 and GDAL, I have
> trouble compiling GRASS5.1. I get the error message below when the
> compilation process reaches v.out.ogr. GDAL's files are installed in
> /usr/local/lib/ and /usr/local/include/.
> Can someone help me with this ?
>
> Moritz
>
>
> configure command:
>
> CFLAGS="-g -Wall" ./configure --with-grass50=/data/GRASSCVS/grass
> --with-tcltk-includes=/usr/include/tcl8.3/
> --with-postgres-includes="/usr/include/postgresql/
> /usr/include/postgresql/internal/" --with-readline --with-dbm
> --with-includes="/usr/include/ /usr/local/include/" --with-libs="/usr/lib/
> /usr/local/lib"
>
> make output:
>
> v.out.ogr
> make[2]: Entering directory `/data/GRASSCVS/grass51/vector/v.out.ogr'
> gcc -I/usr/include/ -I/usr/local/include/ -g -Wall -Wall -I/usr/include/
> -I/usr/local/include/ -I/data/GRASSCVS/grass51/include
> -I/data/GRASSCVS/grass51/dist.i686-pc-linux-gnu/include
> -I/usr/include/postgresql/ -I/usr/include/postgresql/internal/
> -I/data/GRASSCVS/grass51/include
> -I/data/GRASSCVS/grass51/dist.i686-pc-linux-gnu/include \
> -o OBJ.i686-pc-linux-gnu/main.o -c main.c
> /data/GRASSCVS/grass51/include/gis.h:36: warning: `GRASS_copyright'
> defined but not used
> gcc -L/usr/lib/ -L/usr/local/lib
> -L/data/GRASSCVS/grass51/dist.i686-pc-linux-gnu/lib -L/usr/lib/
> -L/usr/local/lib -o
> /data/GRASSCVS/grass51/dist.i686-pc-linux-gnu/etc/bin/cmd/v.out.ogr
> OBJ.i686-pc-linux-gnu/ma
> in.o /data/GRASSCVS/grass51/dist.i686-pc-linux-gnu/lib/libgrass_vect.a
> /data/GRASSCVS/grass51/dist.i686-pc-linux-gnu/lib/libgrass_dig2.a
> /data/GRASSCVS/grass51/dist.i686-pc-linux-gnu/lib/libgrass_shape.a -lpq
> /data/GRASSCVS/grass51/dist.i686-pc-linux-gnu/lib/libgrass_btree.a
> /data/GRASSCVS/grass51/dist.i686-pc-linux-gnu/lib/libgrass_rtree.a
> /data/GRASSCVS/grass51/dist.i686-pc-linux-gnu/lib/libgrass_linkm.a
> /data
> /GRASSCVS/grass51/dist.i686-pc-linux-gnu/lib/libgrass_dbmi.a
> /data/GRASSCVS/grass51/dist.i686-pc-linux-gnu/lib/libgrass_dbmi.a
> /data/GRASSCVS/grass51/dist.i686-pc-linux-gnu/lib/libgrass_gis.a -ldl
> -lm -lz
>
> OBJ.i686-pc-linux-gnu/main.o(.text+0x296): In function `main':
> /data/GRASSCVS/grass51/vector/v.out.ogr/main.c:145: référence indéfinie
> vers « OGRRegisterAll »
[...]
Above -lgdal.1.1 is missing. What does
cd grass51src/
grep GDALLIBS include/Make/Platform.make
say?
Markus
More information about the grass-dev
mailing list