[GRASSLIST:6239] Re: GDAL install problems

Hamish hamish_nospam at yahoo.com
Wed Mar 23 18:49:20 EST 2005


> > 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.

when you run ./configure, you need to use absolute path names, not
relative path names. i.e. no --path=../../libs  etc.

After that be sure to do 'make distclean' or whatever to clean out the
old occurances. Or even start from a fresh directory.



> 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

     ^^^^^ bad.

> 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.


try again with above hint?



> 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.

Then you will definitely need GDAL. You can use the 'ogr2ogr' program it
makes to do the conversion without GRASS. Of course GRASS is a great
front end for GDAL/OGR and will be needed for any advanced processing. :)

OGR SDTS-DLG page:
 http://www.gdal.org/ogr/drv_sdts.html

You might check out QGIS as a GDAL/OGR frontend as well.



Hamish




More information about the grass-user mailing list