I'm not sure about ctypes and cygwin. At any rate, you'll need to specify
a DLL to load instead of static lib (which the DLL.a appears to be).
Cheers,
Sean
> Hi,
>
> is it possible to build python shapely lib under cygwin?
>
> The installation of the Shapely-1.0.7 tar file was successfull, but now
> I get this:
>
> $ python
> Python 2.5.1 (r251:54863, May 18 2007, 16:56:43)
> [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
> Type "help", "copyright", "credits" or "license" for more information.
>>>> from shapely.geometry import Point
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "shapely/geometry/__init__.py", line 1, in <module>
> from geo import shape, asShape
> File "shapely/geometry/geo.py", line 5, in <module>
> from point import Point, asPoint
> File "shapely/geometry/point.py", line 10, in <module>
> from shapely.geos import lgeos, DimensionError
> File "shapely/geos.py", line 48, in <module>
> lgeos = PyDLL('libgeos_c.so')
> File "/tmp/python.6884/usr/lib/python2.5/ctypes/__init__.py", line
> 340, in __init__
> OSError: No such file or directory
>
>
> Of course there is no libgeos_c.so on Windows. But libgeos_c.dll.a
> exists in /usr/local/lib (I compiled geos-2.2.3).
>
> Is there a possibility to point shapely to this dll?
>
> Changing
> lgeos = PyDLL('libgeos_c.so')
> manually and replace it with
> lgeos = PyDLL('libgeos_c.dll.a')
> has no (positive) effect.
>
>
> I also wonder about
> "/tmp/python.6884/usr/lib/python2.5/ctypes/__init__.py".
> Why /tmp..?
>
>
> I am not so familar with cygwin now, but there is no possibility to use
> a "real" unix environment at the moment.
>
> Did I made something wrong when installing shapely or libgeos?
>
> regards
> Stefan
>
>
> ps. i managed to install in shapely directly in Windows (using the
> windows installer), but I also need ogr libs, which came with fwtools
> and the new shapely lib does not work out-of-the-box with the old python
> version (2.3.4) in fwtools.
>
> _______________________________________________
> Community mailing list
> [email protected]
> http://lists.gispython.org/mailman/listinfo/community
>
_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community