Hi Everyone,
I just wanted to encourage Sandro, on his Python + Spatialite page, to
indicate that the
Python developer libraries are needed to build PySpatialite, which is
obvious from the
error messages to anyone experienced with this sort of thing. But for
a noob like me
who isn't, it's helpful to have those kinds of instructions.
I followed the instructions here:
http://www.gaia-gis.it/spatialite-2.4.0-4/splite-python.html
...in order to get the Qspatialite plugin to work.
For example, in the case of Ubuntu (I'm running 10.04):
$ sudo apt-get install python-all-dev
...will get you everything you need to build PySpatialte. I will just
post some of the output
and error messages in case a noob like me searches this list for an
answer.
Thank you (Sandro, and everyone)!!
M
src/connection.h:26:20: error: Python.h: No such file or directory
src/connection.h:27:22: error: pythread.h: No such file or directory
src/connection.h:28:26: error: structmember.h: No such file or
directory
In file included from src/connection.h:30,
from src/module.c:24:
src/cache.h:34: error: expected specifier-qualifier-list before
‘PyObject_HEAD’
src/cache.h:44: error: expected specifier-qualifier-list before
‘PyObject_HEAD’
src/cache.h:61: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘pysqlite_NodeType’
src/cache.h:62: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘pysqlite_CacheType’
src/cache.h:64: error: expected declaration specifiers or ‘...’ before
‘PyObject’
src/cache.h:64: error: expected declaration specifiers or ‘...’ before
‘PyObject’
src/cache.h:67: error: expected declaration specifiers or ‘...’ before
‘PyObject’
src/cache.h:67: error: expected declaration specifiers or ‘...’ before
‘PyObject’
src/cache.h:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ toke