Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I tried to compile Qgis 1.8 in linux debian squeeze (following the instructions in INSTALL.txt). During 'make' I get the following error:

[ 40%] Building CXX object src/providers/spatialite/CMakeFiles/spatialiteprovider.dir/qgsspatialiteprovider.cpp.o /usr/local/qgis-1.8.0/src/providers/spatialite/qgsspatialiteprovider.cpp: In function ‘bool initializeSpatialMetadata(sqlite3*, QString&)’: /usr/local/qgis-1.8.0/src/providers/spatialite/qgsspatialiteprovider.cpp:4972: error: ‘spatial_ref_sys_init’ was not declared in this scope make[2]: * [src/providers/spatialite/CMakeFiles/spatialiteprovider.dir/qgsspatialiteprovider.cpp.o] Error 1 make[1]: [src/providers/spatialite/CMakeFiles/spatialiteprovider.dir/all] Error 2 make: ** [all] Error 2

Any help to solve this?

Oscar

share|improve this question
    
Hello, did you solve this? I have exactly the same problem... –  jorgeas80 May 12 '13 at 11:47
add comment

1 Answer 1

I solved it compiling libspatialite by myself. I used this version: http://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-2.4.0-5.tar.gz, and executed the classical ./configure & make & make install

After that, ensure the compiled version of libspatiallite is selected during ccmake step (SPATIALITE_INCLUDE_DIR and SPATIALITE_LIBRARY vars)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.