[OSM-dev] Writing an OSM map application
Keith Sharp
kms at passback.co.uk
Sat Mar 24 15:31:06 GMT 2007
On Sat, 2007-03-24 at 16:21 +0100, Andreas Volz wrote:
>
> I tried to build it with the Makefile and got as result:
>
> g++ -g -O2 -Wall -DGEOS_INLINE -c -o build_geometry.o
> build_geometry.cpp build_geometry.cpp:26:39: error:
> geos/geom/GeometryFactory.h: No such file or directory
> build_geometry.cpp:27:49: error:
> geos/geom/CoordinateSequenceFactory.h:
> No such file or directory build_geometry.cpp:28:32: error:
> geos/geom/Geometry.h: No such file or directory
> build_geometry.cpp:29:34: error: geos/geom/LineString.h: No such file
> or directory build_geometry.cpp:30:34: error: geos/geom/LinearRing.h:
> No such file or directory build_geometry.cpp:31:39: error:
> geos/geom/MultiLineString.h: No such file or directory
> build_geometry.cpp:32:31: error: geos/geom/Polygon.h: No such file or
> directory build_geometry.cpp:33:31: error: geos/io/WKTReader.h: No
> such
> file or directory build_geometry.cpp:34:31: error:
> geos/io/WKTWriter.h:
> No such file or directory
> ...
>
> > ls /usr/include/geos
> geomgraph.h indexBintree.h io.h operation.h
> opValid.h spatialIndex.h geomgraphindex.h indexChain.h
> noding.h opLinemerge.h planargraph.h timeval.h
> geom.h indexQuadtree.h nodingSnapround.h opOverlay.h
> platform.h unload.h geomUtil.h indexStrtree.h
> opBuffer.h opPolygonize.h precision.h util.h
> geosAlgorithm.h indexSweepline.h opDistance.h opRelate.h
> profiler.h version.h
>
> > eix geos
> * sci-libs/geos
> Available versions: 2.2.1 2.2.3 ~3.0.0_rc3
> Installed: 2.2.3
> Homepage: http://geos.refractions.net
> Description: Geometry Engine - Open Source
>
> Do I need a more recent geos version? I think it doesn't hurt to
> document the needed library versions. :-)
By default the Makefile is configured to build against GEOS 3.0.0. You
have two options:
1) Upgrade your GEOS to 3.0.0.
2) Pass the compiler define to make the build use GEOS 2.2:
CXXFLAGS="-DGEOS_TWO" make
Keith.
More information about the dev
mailing list