On Sun, Jan 30, 2011 at 1:02 AM, Frederik Ramm <frede...@remote.org> wrote:
> Hi,
>
> Parveen Arora wrote:
>>
>> In file included from build_geometry.cpp:37:
>> /usr/include/geos/geom/prep/PreparedPolygon.h:21:40: error:
>> geos/noding/SegmentString.h: No such file or directory
>
> This is due to geos packages on a number of Ubuntu releases (I *think* it is
> jaunty, karmic, and lucid) being broken. (There may be breakage on Debian as
> well but I've only witnessed on Ubuntu.)
>
> For example, the above file is not included in the geos-dev package in
> jaunty:
>
> $ dpkg -L libgeos-dev|grep SegmentString
> $
>
> but if you apt-get source geos-dev, then sure enough
>
> $ find geos-3.0.0 -name SegmentString.h
> geos-3.0.0/source/headers/geos/noding/SegmentString.h
I have tried to compile the geos-3.0.0 version, but this is also giving error:
DoubleBits.cpp: In static member function 'static double
geos::index::quadtree::DoubleBits::powerOf2(int)':
DoubleBits.cpp:51: error: 'memcpy' was not declared in this scope
DoubleBits.cpp: In constructor
'geos::index::quadtree::DoubleBits::DoubleBits(double)':
DoubleBits.cpp:94: error: 'memcpy' was not declared in this scope
make[3]: *** [DoubleBits.lo] Error 1
make[3]: Leaving directory `/home/parveen/geos-3.0.0/source/index/quadtree'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/parveen/geos-3.0.0/source/index'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/parveen/geos-3.0.0/source'
make: *** [all-recursive] Error 1

but I got SegmentString.h at following path
~/geos-3.0.0/source/headers/geos/noding#


> i.e. these files are not copied into the geos-dev package. You can fix the
> problem by copying them from the source manually, or put them into your
> osm2pgsql directory and modify the include path.
I have put that SegmentString.h into osm2pgsql folder

and this time it shows at end is:
make[2]: Leaving directory `/home/parveen/bin/osm2pgsql'
make[1]: Leaving directory `/home/parveen/bin/osm2pgsql'



-- 
With Kind Regards
Parveen Arora

_______________________________________________
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev

Reply via email to