[GRASSLIST:6233] Re: GDAL install problems

David Kramer davidk at gmail.com
Wed Mar 23 12:34:51 EST 2005


On Wed, 23 Mar 2005 17:13:43 +1200, Hamish wrote:
> > I'm trying to install GRASS 6.0 from the tarball. It seems to require
> > GDAL, which I don't need. I can't install GDAL, due to problems with
> > that distro, so I'd like to have GRASS not use GDAL. I pass
> > with-gdal=no into configure, but I get this:
> >
> > checking whether to use GDAL... no
> > checking for GDALOpen... no
> > checking for GDALOpen... no
> > configure: error: *** Unable to locate GDAL library.
> >
> > Why does it want the GDAL library when it knows that it should not use
> > GDAL? Any suggestions for hacks to get around this?
> 
> try --without-gdal ? probably same results.
> 
> What's the problem building GDAL?
> Without it GRASS is rather isolated. It's highly recommended.

Here's the problem with GDAL. I'm building on RH Linux from the tar
ball. configure works just fine. Make runs into a couple of problems.
Firstly the  -I paths in the makefile are incomplete. I fixed that.
Then I run into this compiler error:

make[2]: Entering directory `/home/foo/Tools/Gdal/gdal-1.2.6/frmts/ogdi'
/bin/sh ../../libtool --mode=compile g++ -Wall  -O2    -I../../port
-I../../gcore -I../../alg -I../../ogr -I../../ogr/ogrsf_frmts 
-I../../port  -c -o ../o/ogdidataset.o ogdidataset.cpp
 g++ -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr
-I../../ogr/ogrsf_frmts -I../../port -c ogdidataset.cpp  -fPIC -DPIC
-o ../o/.libs/ogdidataset.o
In file included from /usr/include/ecs.h:353,
                 from ogdidataset.cpp:95:
/usr/include/ecs_util.h:84:22: projects.h: No such file or directory
In file included from /usr/include/ecs.h:353,
                 from ogdidataset.cpp:95:
/usr/include/ecs_util.h:1071: syntax error before `*' token
/usr/include/ecs_util.h:1072: syntax error before `*' token
/usr/include/ecs_util.h:1144: syntax error before `*' token

Looking at these lines in /usr/include/ecs_util.h I see that they're
all pointers to this type:
  PJ *target;             /* source and target projection descriptors */

Possibly I have a bad install of ecs_util.h, but I can't find "PJ" anywhere.

B.t.w. While GRASS looks pretty neat, all I need it for right now is
to convert .dlg files into ESRI shapefiles. If anyone on this list
knows a better way to do this conversion, then we can finesse this
whole issue.

Thx
David




More information about the grass-user mailing list