[gdal-dev] compiling GDAL with GEOS support.

Jerl Simpson jsimpson at wxtrends.com
Wed Aug 17 14:20:13 EDT 2011


That was the problem.  I thought specifying the GEOS install directly would
overcome that.

Thanks for the help.

Jerl

On Wed, Aug 17, 2011 at 1:00 PM, Even Rouault
<even.rouault at mines-paris.org>wrote:

> Le mercredi 17 août 2011 18:19:20, Jerl Simpson a écrit :
> > Hi:
> >
> > I'm having a strange issue when compiling GDAL with GEOS support.
> >
> > I wonder if someone can help.
> >
> > When I enable GEOS support using "--with-geos=/usr/local/bin/geos-config"
> I
> > get the following errors:
> >
> > gdal/.libs/libgdal.so: undefined reference to `GEOSWKBWriter_create'
> > gdal/.libs/libgdal.so: undefined reference to `GEOSSimplify'
> > gdal/.libs/libgdal.so: undefined reference to `GEOSWKBWriter_write'
> > gdal/.libs/libgdal.so: undefined reference to
> > `GEOSWKBWriter_setOutputDimension'
> > gdal/.libs/libgdal.so: undefined reference to `GEOSUnionCascaded'
> > gdal/.libs/libgdal.so: undefined reference to `GEOSFree'
> > gdal/.libs/libgdal.so: undefined reference to `GEOSWKBWriter_destroy'
> > gdal/.libs/libgdal.so: undefined reference to
> > `GEOSGeom_getCoordinateDimension'
>
> Hum, what is interesting here is that all those symbols are conditionnaly
> used
> when GEOS >= 3.1 is detected. So my guess is that GDAL builds against the
> include files of the newer GEOS version you specify, but at the linking
> stage,
> there's an older libgeos that must be somewhere in the linking path,
> probably
> in /usr/lib that gets linked before the one you would liked too. So you
> might
> want to uninstall your older geos version, or to alter the linking order of
> the LIBS variable in GDALmake.opt and/or remove the mentions to -L/usr/lib
> that might be found in it
>



-- 
This communication is privileged and may contain confidential information.
 It's intended only for the use of the person or entity named above. If you
are not the intended recipient, do not distribute or copy this
communication. If you have received this communication in error, please
notify the sender immediately and return the original to the email address
above. © Copyright 2011 Weather Trends International, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110817/9e802582/attachment.html


More information about the gdal-dev mailing list