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

Fernando González Cortés discoduro2 at terra.es
Mon Jan 2 03:56:27 EST 2006


Hi!
	It worked but I haven't been able to build gdal yet. I get another
error:
	g++ ogrinfo.o -o .libs/ogrinfo  ../.libs/libgdal.so -lodbc -lgif
/usr/lib/libjpeg.so -lpng -L/usr/lib -lpq -lz -lrt -ldl -Wl,--rpath
-Wl,/usr/local/lib
../.libs/libgdal.so: undefined reference to
`geos::WKTReader::WKTReader[in-charge](geos::GeometryFactory const*)'

I've downloaded geos and executed the following commands:
./configure
make
make install

I think after the first one, a geos-config file appears under the
geos-2.2.1/tools directory. After all of this I change to gdal directory
and execute the two following commands:

./configure --with-geos=../geos-2.2.1/tools/geos-config
make

But the make fails with the error I've pasted at the top of the mail.

What's wrong? Is the geos-config I used the one you talk about?

Thanks in advance,
Fernando



El lun, 02-01-2006 a las 09:15, Ari Jolma escribió:
> Fernando González Cortés wrote:
> > Hello,
> > 
> > I have downloaded and decompressed this file
> > 	
> > 	http://www.gdal.org/dl/gdal-1.3.1.tar.gz
> > 
> > ogr_geos.h:41:25: geos/geom.h: No such file or directory
> 
> This probably means that GEOS is enabled but not found. Try the geos switch
> 
> --with-geos[=ARG]       Include GEOS support (ARG=yes, no or geos-config
> path)
> 
> in ./configure
> 
> geos source is available from http://geos.refractions.net/
> 
> Ari Jolma
> 
> > 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
> > 
> > _______________________________________________
> > Gdal-dev mailing list
> > Gdal-dev at lists.maptools.org
> > http://lists.maptools.org/mailman/listinfo/gdal-dev
> 





More information about the Gdal-dev mailing list