[Qgis-developer] Unable to compile QGIS under Ubuntu 10.04 LTS

luca_manganelli at comune.trento.it luca_manganelli at comune.trento.it
Mon Nov 8 09:39:08 EST 2010


Hi,

I'm encounteering problems compiling latest SVN build of QGIS. I have this
error:

[ 44%] Building CXX object src/app/CMakeFiles/qgis.dir/qgisapp.cpp.o
In file included from
/usr/local/src/qgis_unstable/src/app/qgsrasterlayerproperties.h:23,
                 from /usr/local/src/qgis_unstable/src/app/qgisapp.cpp:145:

[...]

/usr/local/src/qgis_unstable/src/app/gps/qgsgpsinformationwidget.h:75:
error: expected \u2018;\u2019 before \u2018*\u2019 token
/usr/local/src/qgis_unstable/src/app/qgisapp.cpp: In member function 'void
QgisApp::about()':
/usr/local/src/qgis_unstable/src/app/qgisapp.cpp:2496: error:
'QWT_VERSION_STR' was not declared in this scope
make[2]: *** [src/app/CMakeFiles/qgis.dir/qgisapp.cpp.o] Errore 1
make[1]: *** [src/app/CMakeFiles/qgis.dir/all] Errore 2
make: *** [all] Errore 2


It seems that QWT is missing, BUT  (note the directory)

/usr/include/qwt-qt4 $ fgrep QWT_VERSION_STR *

    qwt_global.h:#define QWT_VERSION_STR   "5.2.0"

It is also found by CMAKE:

/usr/local/src/qgis_unstable/cmake$ cmake .

-- Quantum GIS version: 1.7.0 Trunk (10700)
-- Could not find GRASS
-- Found Proj: /usr/lib/libproj.so
-- Found Expat: /usr/lib/libexpat.so
-- Found GSL: -L/usr/lib -lgsl -lgslcblas -lm
-- Found GEOS: /usr/local/lib/libgeos_c.so
-- Found GDAL: /usr/local/lib/libgdal.so
-- Found QWT: /usr/lib/libqwt.so
-- Found PostgreSQL: /usr/lib/libpq.so
-- Debug output enabled
-- Found Python executable: /usr/bin/python2.6
-- Found Python version: 2.6.5
-- Found Python library: /usr/lib/libpython2.6.so
-- Found SIP version: 4.10.1
-- Found PyQt4 version: 4.7.2
-- Found FCGI: /usr/lib/libfcgi.so
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/src/qgis_unstable/cmake


how can I fix this error?



More information about the Qgis-developer mailing list