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

Gabriele Monfardini gabrimonfa at gmail.com
Mon Nov 8 12:59:08 EST 2010


I think you need to compile against /usr/lib/libqwt-qt4.so instead of
/use/lib/libqwt.so.
You can fix the problem removing the package that provide libqwt.so, install
the one that provide libqwt-qt4.so, doing cmake again and verifying what
cmake said in "Found QWT:" line.
Regards,

Gabriele
Il giorno 2010 11 8 15:39, <luca_manganelli at comune.trento.it> ha scritto:
>
> 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?
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20101108/cb7d2e7d/attachment.html


More information about the Qgis-developer mailing list