<div>Dunque dentro a qgis 1.7 trunk per mac os x, non c'è pyspatialite...ma magari lo metteranno.</div><div><br></div>Ho provato ad installare su mac os x 10.5 leopard pyspatilite via easy_install, ma ricevo questo errore [1]<div>
<br></div><div>Ho provato poi a installare da sorgente ma mi becco questi errori qua [2].</div><div><br></div><div>Suggerimenti???</div><div><br></div><div>Ciao e grazie.</div><div><br></div><div>Luca</div><div><br></div>
<div><br><div>[1]</div><div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
host138-244-dynamic:~ pyarchinit$ sudo easy_install pyspatialite<br>Password:<br>Searching for pyspatialite<br>Reading <a href="http://pypi.python.org/simple/pyspatialite/">http://pypi.python.org/simple/pyspatialite/</a><br>
Reading <a href="http://pyspatialite.googlecode.com/">http://pyspatialite.googlecode.com/</a><br>Reading <a href="http://code.google.com/p/pyspatialite/downloads/list">http://code.google.com/p/pyspatialite/downloads/list</a><br>
Best match: pyspatialite 2.6.1<br>Downloading <a href="http://pyspatialite.googlecode.com/files/pyspatialite-2.6.1.tar.gz">http://pyspatialite.googlecode.com/files/pyspatialite-2.6.1.tar.gz</a><br>Processing pyspatialite-2.6.1.tar.gz<br>
Running pyspatialite-2.6.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-dmMEmW/pyspatialite-2.6.1/egg-dist-tmp-5T2Y4D<br>Downloading amalgation.<br>Extracting sqlite3.c<br>Extracting headers/spatialite/sqlite3.h<br>
Extracting spatialite.c<br>Extracting headers/spatialite/sqlite3ext.h<br>Extracting headers/spatialite/spatialite.h<br>Extracting headers/spatialite/gaiaaux.h<br>Extracting headers/spatialite/gaiaexif.h<br>Extracting headers/spatialite/gaiageo.h<br>
amalgamation/spatialite.c:85:20: amalgamation/spatialite.c:85:20: error: geos_c.h: No such file or directory<br>error: geos_c.h: No such file or directory<br>amalgamation/spatialite.c:89:22: error: proj_api.h: No such file or directory<br>
amalgamation/spatialite.c:89:22: error: proj_api.h: No such file or directory<br>amalgamation/spatialite.c: In function ‘gaiaConvertCharset’:<br>amalgamation/spatialite.c:7557: warning: passing argument 2 of ‘libiconv’ from incompatible pointer type<br>
amalgamation/spatialite.c: In function ‘gaiaConvertCharset’:<br>amalgamation/spatialite.c:7557: warning: passing argument 2 of ‘libiconv’ from incompatible pointer type<br>amalgamation/spatialite.c: In function ‘gaiaConvertToUTF8’:<br>
amalgamation/spatialite.c:7612: warning: passing argument 2 of ‘libiconv’ from incompatible pointer type<br>amalgamation/spatialite.c: In function ‘gaiaConvertToUTF8’:<br>amalgamation/spatialite.c:7612: warning: passing argument 2 of ‘libiconv’ from incompatible pointer type<br>
amalgamation/spatialite.c: In function ‘gaiaGeomCollEquals’:<br>amalgamation/spatialite.c:12999: error: ‘GEOSGeometry’ undeclared (first use in this function)<br>amalgamation/spatialite.c:12999: error: (Each undeclared identifier is reported only once<br>
amalgamation/spatialite.c:12999: error: for each function it appears in.)<br>amalgamation/spatialite.c:12999: error: ‘g1’ undeclared (first use in this function)<br>amalgamation/spatialite.c:13000: error: ‘g2’ undeclared (first use in this function)<br>
amalgamation/spatialite.c: In function ‘gaiaGeomCollIntersects’:<br>amalgamation/spatialite.c:13022: error: ‘GEOSGeometry’ undeclared (first use in this function)<br>amalgamation/spatialite.c:13022: error: ‘g1’ undeclared (first use in this function)<br>
amalgamation/spatialite.c:13023: error: ‘g2’ undeclared (first use in this function)<br>amalgamation/spatialite.c: In function ‘gaiaGeomCollDisjoint’:<br>.......</blockquote></div></div><div><br></div><div><br></div><div>
[2]</div><div><br></div><div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
host138-244-dynamic:pyspatialite-2.6.1 pyarchinit$ sudo python setup.py install<br>running install<br>running build<br>running build_py<br>creating build<br>creating build/lib.macosx-10.3-fat-2.5<br>creating build/lib.macosx-10.3-fat-2.5/pyspatialite<br>
copying lib/__init__.py -> build/lib.macosx-10.3-fat-2.5/pyspatialite<br>copying lib/dbapi2.py -> build/lib.macosx-10.3-fat-2.5/pyspatialite<br>copying lib/dump.py -> build/lib.macosx-10.3-fat-2.5/pyspatialite<br>
creating build/lib.macosx-10.3-fat-2.5/pyspatialite/test<br>copying lib/test/__init__.py -> build/lib.macosx-10.3-fat-2.5/pyspatialite/test<br>copying lib/test/dbapi.py -> build/lib.macosx-10.3-fat-2.5/pyspatialite/test<br>
copying lib/test/dump.py -> build/lib.macosx-10.3-fat-2.5/pyspatialite/test<br>copying lib/test/factory.py -> build/lib.macosx-10.3-fat-2.5/pyspatialite/test<br>copying lib/test/hooks.py -> build/lib.macosx-10.3-fat-2.5/pyspatialite/test<br>
copying lib/test/regression.py -> build/lib.macosx-10.3-fat-2.5/pyspatialite/test<br>copying lib/test/transactions.py -> build/lib.macosx-10.3-fat-2.5/pyspatialite/test<br>copying lib/test/types.py -> build/lib.macosx-10.3-fat-2.5/pyspatialite/test<br>
copying lib/test/userfunctions.py -> build/lib.macosx-10.3-fat-2.5/pyspatialite/test<br>creating build/lib.macosx-10.3-fat-2.5/pyspatialite/test/py25<br>copying lib/test/py25/__init__.py -> build/lib.macosx-10.3-fat-2.5/pyspatialite/test/py25<br>
copying lib/test/py25/py25tests.py -> build/lib.macosx-10.3-fat-2.5/pyspatialite/test/py25<br>running build_ext<br>Downloading amalgation.<br>Extracting sqlite3.c<br>Extracting headers/spatialite/sqlite3.h<br>Extracting spatialite.c<br>
Extracting headers/spatialite/sqlite3ext.h<br>Extracting headers/spatialite/spatialite.h<br>Extracting headers/spatialite/gaiaaux.h<br>Extracting headers/spatialite/gaiaexif.h<br>Extracting headers/spatialite/gaiageo.h<br>
building 'pyspatialite._spatialite' extension<br>creating build/temp.macosx-10.3-fat-2.5<br>creating build/temp.macosx-10.3-fat-2.5/src<br>creating build/temp.macosx-10.3-fat-2.5/amalgamation<br>gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -DMODULE_NAME="spatialite.dbapi2" -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -Iamalgamation -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c src/module.c -o build/temp.macosx-10.3-fat-2.5/src/module.o<br>
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -DMODULE_NAME="spatialite.dbapi2" -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -Iamalgamation -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c src/connection.c -o build/temp.macosx-10.3-fat-2.5/src/connection.o<br>
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -DMODULE_NAME="spatialite.dbapi2" -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -Iamalgamation -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c src/cursor.c -o build/temp.macosx-10.3-fat-2.5/src/cursor.o<br>
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -DMODULE_NAME="spatialite.dbapi2" -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -Iamalgamation -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c src/cache.c -o build/temp.macosx-10.3-fat-2.5/src/cache.o<br>
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -DMODULE_NAME="spatialite.dbapi2" -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -Iamalgamation -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c src/microprotocols.c -o build/temp.macosx-10.3-fat-2.5/src/microprotocols.o<br>
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -DMODULE_NAME="spatialite.dbapi2" -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -Iamalgamation -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c src/prepare_protocol.c -o build/temp.macosx-10.3-fat-2.5/src/prepare_protocol.o<br>
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -DMODULE_NAME="spatialite.dbapi2" -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -Iamalgamation -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c src/statement.c -o build/temp.macosx-10.3-fat-2.5/src/statement.o<br>
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -DMODULE_NAME="spatialite.dbapi2" -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -Iamalgamation -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c src/util.c -o build/temp.macosx-10.3-fat-2.5/src/util.o<br>
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -DMODULE_NAME="spatialite.dbapi2" -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -Iamalgamation -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c src/row.c -o build/temp.macosx-10.3-fat-2.5/src/row.o<br>
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -DMODULE_NAME="spatialite.dbapi2" -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -Iamalgamation -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c amalgamation/sqlite3.c -o build/temp.macosx-10.3-fat-2.5/amalgamation/sqlite3.o<br>
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -DMODULE_NAME="spatialite.dbapi2" -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -Iamalgamation -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c amalgamation/spatialite.c -o build/temp.macosx-10.3-fat-2.5/amalgamation/spatialite.o<br>
amalgamation/spatialite.c:85:20: error: geos_c.h: No such file or directory<br>amalgamation/spatialite.c:89:22: error: proj_api.h: No such file or directory<br>amalgamation/spatialite.c:85:20: error: geos_c.h: No such file or directory<br>
amalgamation/spatialite.c:89:22: error: proj_api.h: No such file or directory<br>amalgamation/spatialite.c: In function ‘gaiaConvertCharset’:</blockquote></div><div><br></div>