[Qgis-user] Error when compiling QGIS on ubuntu 11.1
Salvatore Larosa
lrssvtml at gmail.com
Sat Apr 28 10:07:53 PDT 2012
Il giorno sab, 28/04/2012 alle 11.04 -0500, Lenny Sorey ha scritto:
> [ 39%] Generating moc_qgsspatialiteconnection.cxx
> [ 39%] Generating moc_qgsspatialiteprovider.cxx
> [ 39%] Generating moc_qgsspatialitedataitems.cxx
> [ 39%] Generating moc_qgsspatialitesourceselect.cxx
> [ 39%] Generating moc_qgsspatialitetablemodel.cxx
> Scanning dependencies of target spatialiteprovider
> [ 39%] Building CXX object
> src/providers/spatialite/CMakeFiles/spatialiteprovider.dir/qgsspatialiteprovider.cpp.o
> /root/dev/cpp/Quantum-GIS/src/providers/spatialite/qgsspatialiteprovider.cpp: In function ‘bool initializeSpatialMetadata(sqlite3*, QString&)’:
> /root/dev/cpp/Quantum-GIS/src/providers/spatialite/qgsspatialiteprovider.cpp:4972:42: 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
>
> I previously updated to the latest version of libsqlite3-dev prior to
> running make command.
>
> Any suggestions?
Make sure that the following paths are correct:
SPATIALITE_INCLUDE_DIR
SPATIALITE_LIBRARY
Also, checks this:
SQLITE3_INCLUDE_DIR
SQLITE3_LIBRARY
Regards,
-SL
More information about the Qgis-user
mailing list