[Gdal-dev] problem building gdal in linux fedora core 1

Fernando González Cortés discoduro2 at terra.es
Sun Jan 1 18:11:39 EST 2006


Hello,

I have downloaded and decompressed this file
	
	http://www.gdal.org/dl/gdal-1.3.1.tar.gz 

after it, I've followed the build instructions in

	http://www.gdal.org/gdal_building.html

I've executed the "./configure" command without any problem but when I
execute "make" command I get the following error (after some successful
g++ commands):

 g++ -Wall -O2 -Iogrsf_frmts -I. -I../port -I../gcore -I../alg -I../ogr
-I../ogr/ogrsf_frmts -DHAVE_GEOS=1 -I-O2 -g -pipe -march=i386 -mcpu=i686
-I/usr/include -I../port -c ogrgeometryfactory.cpp  -fPIC -DPIC -o
.libs/ogrgeometryfactory.o
In file included from ogrgeometryfactory.cpp:118:
ogr_geos.h:41:25: geos/geom.h: No such file or directory
ogr_geos.h:42:23: geos/io.h: No such file or directory
ogr_geos.h:43:25: geos/util.h: No such file or directory
ogrgeometryfactory.cpp: In static member function `static OGRGeometry*
   OGRGeometryFactory::createFromGEOS(const geos::Geometry*)':
ogrgeometryfactory.cpp:827: error: `WKTWriter' undeclared in namespace
`geos'
ogrgeometryfactory.cpp:827: error: syntax error before `;' token
ogrgeometryfactory.cpp:828: error: `string' undeclared (first use this
   function)
ogrgeometryfactory.cpp:828: error: (Each undeclared identifier is
reported only
   once for each function it appears in.)
ogrgeometryfactory.cpp:832: error: `oWKT' undeclared (first use this
function)
ogrgeometryfactory.cpp:832: error: `oWKTWriter' undeclared (first use
this
   function)
ogrgeometryfactory.cpp:834: error: syntax error before `*' token
ogrgeometryfactory.cpp:840: error: `e' undeclared (first use this
function)
ogrgeometryfactory.cpp: At global scope:
ogrgeometryfactory.cpp:847: error: syntax error before `if'
ogrgeometryfactory.cpp: In static member function `static
   geos::GeometryFactory* OGRGeometryFactory::getGEOSGeometryFactory()':
ogrgeometryfactory.cpp:871: error: invalid use of undefined type `struct
   geos::GeometryFactory'
ogr_geometry.h:231: error: forward declaration of `struct
geos::GeometryFactory
   '
make: *** [ogrgeometryfactory.o] Error 1


I think there should be something like a "geos" directory under
gdal/ogr/. I'm not sure. Should I download geos sources? What I'm doing
wrong?

Thanks in advance,
Fernando




More information about the Gdal-dev mailing list