[Gdal-dev] problem building gdal in linux fedora core 1
Ari Jolma
ari.jolma at tkk.fi
Mon Jan 2 04:35:13 EST 2006
Fernando González Cortés wrote:
> 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*)'
Just guessing now: geos libs are installed into /usr/local/lib and you
don't have that dir in /etc/ld.so.conf? (as usual in fedora) Does
ldconfig -v report geos library?
Ari
>
> 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
>
>
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev
--
Prof. Ari Jolma
Kartografia ja Geoinformatiikka / Cartography and Geoinformatics
Teknillinen Korkeakoulu / Helsinki University of Technology
tel: +358 9 451 3886 address: POBox 1200, 02015 TKK, Finland
Email: ari.jolma at tkk.fi URL: http://www.tkk.fi/~jolma
More information about the Gdal-dev
mailing list