Hi,
Nice set of libraries!

While studying WorldMill I've noticed it does not build on Debian/lenny.

I've prepared a quick-and-dirty patch for it:

Index: src/mill/ogrinit.pyx
===================================================================
--- src/mill/ogrinit.pyx        (revision 1081)
+++ src/mill/ogrinit.pyx        (working copy)
@@ -1,7 +1,7 @@
 
 import atexit
 
-cdef extern from "ogr_api.h":
+cdef extern from "gdal/ogr_api.h":
     void OGRRegisterAll()
     void OGRCleanupAll()
 
Index: src/mill/ograpi.pxd
===================================================================
--- src/mill/ograpi.pxd (revision 1081)
+++ src/mill/ograpi.pxd (working copy)
@@ -2,7 +2,7 @@
 # All rights reserved.
 # See ../LICENSE.txt
 
-cdef extern from "ogr_api.h":
+cdef extern from "gdal/ogr_api.h":
     void    OGR_DS_Destroy (void *datasource)
     void *  OGR_DS_GetLayerByName (void *datasource, char *name)
     int     OGR_DS_GetLayerCount (void *datasource)
Index: setup.py
===================================================================
--- setup.py    (revision 1081)
+++ setup.py    (working copy)
@@ -3,7 +3,7 @@
 from distutils.core import Extension
 from Cython.Distutils import build_ext as build_pyx
 
-libs = ['gdal']
+libs = ['gdal1.5.0']
 
 # Get text from README.txt
 readme_text = file('README.txt', 'rb').read()



although proper usage of gdal-config would be the right thing.

Could you please create a ticket for it?

Thanks, Kirill.
_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community

Reply via email to