After a fast email exchange with the Spatialite Maintainer (many thx to Alessandro Furieri) , the issue was resolved. QGIS IS using an old deprecated constant "GAIA_VECTORS_LIST_FAST". It was deprecated in the 4.1.0 release, and with the 4.2.0 it is definitively removed from source.
The right usable constants should be: GAIA_VECTORS_LIST_OPTIMISTC and GAIA_VECTORS_LIST_PESSIMISTIC As workaround I add this line to my local spatialite src: in the file gg_const.h #define GAIA_VECTORS_LIST_FAST 0 it mean absolutely none, but with help to resolve the error in qgis compile. I prefer to change the spatialite because I'm no so smart with the qgis code. But the right correction should be in qgis to invoke the two supported constants: GAIA_VECTORS_LIST_OPTIMISTC and GAIA_VECTORS_LIST_PESSIMISTIC instead of the deprecated GAIA_VECTORS_LIST_FAST Best regards. 2014-06-01 23:43 GMT+02:00 Andrea Peri <[email protected]>: > Hi, > I' try to compile qgis from trunk using the last available Spatialite > 4.2.0 RC1 as available on spatialite site. > > In the compile phase I have this error: > > [ 91%] Building CXX object > src/providers/spatialite/CMakeFiles/spatialiteprovider.dir/qgsspatialiteconnection.cpp.o > > /home/archivio/tomcat/software/qgis/QuantumGIS/src/providers/spatialite/qgsspatialiteconnection.cpp: > In member function ‘bool > QgsSpatiaLiteConnection::getTableInfoAbstractInterface(sqlite3*, bool)’: > /home/archivio/tomcat/software/qgis/QuantumGIS/src/providers/spatialite/qgsspatialiteconnection.cpp:301:55: > error: ‘GAIA_VECTORS_LIST_FAST’ was not declared in this scope > make[2]: *** > [src/providers/spatialite/CMakeFiles/spatialiteprovider.dir/qgsspatialiteconnection.cpp.o] > Error 1 > make[1]: *** > [src/providers/spatialite/CMakeFiles/spatialiteprovider.dir/all] Error 2 > make: *** [all] Error 2 > > I'm not sure if this is a bug for spatialite guys or (more probably) an > incompatibility of QGIS source. > > Has anyone try the new SL 4.2.0 with qgis source ? > > Thx, > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty àèìòù > ----------------- > -- ----------------- Andrea Peri . . . . . . . . . qwerty àèìòù -----------------
_______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user
