[Gdal-dev] building gdal on solaris

Frank Warmerdam warmerdam at pobox.com
Thu Apr 20 22:11:34 EDT 2006


Peter.Rushforth at statcan.ca wrote:
> Hi Frank,
> 
> That seemed the fix for that issue, now another:
> 
> make[2]: Leaving directory `/bilbo05/rushpet/gdal/gdal-1.3.1/ogr/ogrsf_frmts'
> /bin/sh ../libtool --mode=compile g++ -Wall  -O2   -Iogrsf_frmts -I. -I../port -I../gcore -I../alg -I../ogr -I../ogr/ogrsf_frmts   -DHAVE_GEOS=1 -I/usr3/pkg4/OpenEV_FW_Tree/FWTools/include -I../port  -c -o ogrgeometryfactory.o ogrgeometryfactory.cpp
> mkdir .libs
>  g++ -Wall -O2 -Iogrsf_frmts -I. -I../port -I../gcore -I../alg -I../ogr -I../ogr/ogrsf_frmts -DHAVE_GEOS=1 -I/usr3/pkg4/OpenEV_FW_Tree/FWTools/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' is not a member of `geos'
> ogrgeometryfactory.cpp:827: error: expected `;' before "oWKTWriter"
> ogrgeometryfactory.cpp:832: error: `oWKTWriter' undeclared (first use this function)
> ogrgeometryfactory.cpp:832: error: (Each undeclared identifier is reported only once for each function it appears in.)
> ogrgeometryfactory.cpp:834: error: `geos::GEOSException' has not been declared
> ogrgeometryfactory.cpp:834: error: invalid catch parameter
> ogrgeometryfactory.cpp:838: error: `e' undeclared (first use this function)
> 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:234: error: forward declaration of `struct geos::GeometryFactory'
> make[1]: *** [ogrgeometryfactory.o] Error 1
> make[1]: Leaving directory `/bilbo05/rushpet/gdal/gdal-1.3.1/ogr'
> make: *** [ogr-target] Error 2

Peter,

I would suggest upgrading to the latest public GEOS distribution (or
disabling it using --without-geos if you aren't caring about GEOS support).

I'm not sure, but I suspect an older version of GEOS where things aren't
where they are expected to be.

You might also consider trying the GDAL 1.3.2b1 snapshot which I think
has better geos configuration logic.

best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGF, http://osgeo.org




More information about the Gdal-dev mailing list