That was the problem. I thought specifying the GEOS install directly would overcome that.<div><br></div><div>Thanks for the help.</div><div><br></div><div>Jerl<br><br><div class="gmail_quote">On Wed, Aug 17, 2011 at 1:00 PM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@mines-paris.org">even.rouault@mines-paris.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Le mercredi 17 août 2011 18:19:20, Jerl Simpson a écrit :<br>
<div class="im">> Hi:<br>
><br>
> I'm having a strange issue when compiling GDAL with GEOS support.<br>
><br>
> I wonder if someone can help.<br>
><br>
> When I enable GEOS support using "--with-geos=/usr/local/bin/geos-config" I<br>
> get the following errors:<br>
><br>
> gdal/.libs/libgdal.so: undefined reference to `GEOSWKBWriter_create'<br>
> gdal/.libs/libgdal.so: undefined reference to `GEOSSimplify'<br>
> gdal/.libs/libgdal.so: undefined reference to `GEOSWKBWriter_write'<br>
> gdal/.libs/libgdal.so: undefined reference to<br>
> `GEOSWKBWriter_setOutputDimension'<br>
> gdal/.libs/libgdal.so: undefined reference to `GEOSUnionCascaded'<br>
> gdal/.libs/libgdal.so: undefined reference to `GEOSFree'<br>
> gdal/.libs/libgdal.so: undefined reference to `GEOSWKBWriter_destroy'<br>
> gdal/.libs/libgdal.so: undefined reference to<br>
> `GEOSGeom_getCoordinateDimension'<br>
<br>
</div>Hum, what is interesting here is that all those symbols are conditionnaly used<br>
when GEOS >= 3.1 is detected. So my guess is that GDAL builds against the<br>
include files of the newer GEOS version you specify, but at the linking stage,<br>
there's an older libgeos that must be somewhere in the linking path, probably<br>
in /usr/lib that gets linked before the one you would liked too. So you might<br>
want to uninstall your older geos version, or to alter the linking order of<br>
the LIBS variable in GDALmake.opt and/or remove the mentions to -L/usr/lib<br>
that might be found in it<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>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.<br>
</div>