[fdo-internals] Disable GEOS support explicitly

Traian Stanev traian.stanev at autodesk.com
Tue Dec 11 20:00:21 EST 2007


The OGR provider likely benefits from OGR having Geos compiled with it. However, the default build for the provider could probably get away without Geos.

Traian


-----Original Message-----
From: fdo-internals-bounces at lists.osgeo.org [mailto:fdo-internals-bounces at lists.osgeo.org] On Behalf Of Mateusz Loskot
Sent: Tuesday, December 11, 2007 7:03 PM
To: fdo-internals
Subject: [fdo-internals] Disable GEOS support explicitly

Hi,

One of FDO users (drwelby) on the #fdo channel reported problems when
building FDO 3.2.x.

It seems he has GEOS installed and then ./configure called for GDAL
enables GEOS support automatically. However, there is probably a
problem with incompatible versions between installed GEOS and FDO's GDAL
version.

AFAIK, we don't need GEOS support in GDAL.
If I'm correct, I'd suggest to add --without-geos option to GDAL's
./configure call in Thirdparty.sh to explicitly disable it GEOS detection.

Here is error message posted by drwelby:
=============================================================================
make[1]: Entering directory
`/home/mpfister/fdosvn/Thirdparty/GDAL1.3/src/ogr'
/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/usr/local/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/usr/local/include -I../port -c
ogrgeometryfactory.cpp  -fPIC -DPIC -o .libs/ogrgeometryfactory.o
In file included from ogr_geos.h:41,
                 from ogrgeometryfactory.cpp:118:
/usr/local/include/geos/geom.h:145:2: warning: #warning *** FIXME: to be
removed, temporarly set to allow a quick successful build
In file included from ogr_geos.h:42,
                 from ogrgeometryfactory.cpp:118:
/usr/local/include/geos/io.h:61:2: warning: #warning *** FIXME: to be
removed, temporarly set to allow a quick successful build
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' was not declared in this
scope
ogrgeometryfactory.cpp:834: error: expected type-specifier
ogrgeometryfactory.cpp:834: error: expected unqualified-id before '*' token
ogrgeometryfactory.cpp:834: error: expected `)' before '*' token
ogrgeometryfactory.cpp:834: error: expected `{' before '*' token
ogrgeometryfactory.cpp:834: error: 'e' was not declared in this scope
ogrgeometryfactory.cpp:834: error: expected `;' before ')' token
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
`/home/mpfister/fdosvn/Thirdparty/GDAL1.3/src/ogr'
make: *** [ogr-target] Error 2
cp: cannot stat `./.libs/libgdal.a': No such file or directory
cp: cannot stat `./.libs/libgdal.so': No such file or directory
cp: cannot stat `./.libs/libgdal.so.1': No such file or directory
cp: cannot stat `./.libs/libgdal.so.1.9.0': No such file or directory
make[1]: Entering directory `/home/mpfister/fdosvn/Thirdparty'
make[1]: *** No rule to make target
`GDAL1.3/linux/lib/optimized/libgdal.so.1.9.0', needed by `all-am'.  Stop.
make[1]: Leaving directory `/home/mpfister/fdosvn/Thirdparty'
make: *** [install-recursive] Error 1
=============================================================================

Cheers
--
Mateusz Loskot
http://mateusz.loskot.net
_______________________________________________
fdo-internals mailing list
fdo-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fdo-internals


More information about the fdo-internals mailing list