Hamish:
> so (IIUC) swig 1.3.29 requires python >= 2.5 ?

I can get a little further if I iteratively add this patch to *_wrap.c:

--- grass_wrap.c.ORIG   2009-07-20 13:06:52.000000000 +1200
+++ grass_wrap.c        2009-07-20 13:07:15.000000000 +1200
@@ -111,6 +111,11 @@
 /* Python.h has to appear first */
 #include <Python.h>
 
+/* needed for Python 2.4 */
+#ifndef Py_ssize_t 
+typedef size_t Py_ssize_t;
+#endif
+
 /* 
-----------------------------------------------------------------------------
  * swigrun.swg
  *

until I get to proj_wrap.c which then fails with:

In file included from proj_wrap.c:2660:
/usr/local/src/grass/svn/releasebranch_6_4/dist.i686-pc-linux-gnu/
 include/grass/gprojects.h:23:29: error: ogr_srs_api.h: No such file or 
directory

(ogr_srs_api.h is present in /usr/include/gdal/)


Hamish



      

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to