[Qgis-developer] unable to compile QGIS Server because of QwtPlot

Andreas Neumann a.neumann at carto.net
Mon Nov 26 07:02:14 PST 2012


 Hi Stefan and Werner,

 Thanks a lot for your quick answers. Stefans hint about the QWT_LIBRARY 
 fixed my issue.

 All fine now.

 Thanks,
 Andreas

 On Mon, 26 Nov 2012 14:56:28 +0000, Ziegler Stefan wrote:
> Hi Andreas
>
> It compiles on my 10.04 installation. I do remind that ccmake finds a
> wrong libqwt sometimes. Please check cmake:
>
> QWT_INCLUDE_DIR: /usr/include/qwt-qt4
> QWT_LIBRARY: /usr/lib/libqwt-qt4.so
>
> And NOT
>
> QWT_LIBRARY:  /usr/lib/libqwt.so
>
> Regards
> Stefan
>
>> -----Ursprüngliche Nachricht-----
>> Von: qgis-developer-bounces at lists.osgeo.org [mailto:qgis-developer-
>> bounces at lists.osgeo.org] Im Auftrag von Andreas Neumann
>> Gesendet: Montag, 26. November 2012 15:50
>> An: qgis-developer
>> Betreff: [Qgis-developer] unable to compile QGIS Server because of 
>> QwtPlot
>>
>>  Hi,
>>
>>  On a Ubuntu 10.04 LTS server I can't compile QGIS server - I get 
>> the  following error
>> message:
>>
>>  ----------------------
>>
>>  CMakeFiles/qgis_gui.dir/raster/qgsrasterhistogramwidget.cpp.o: In  
>> function
>> `QgsRasterHistogramWidget::refreshHistogram()':
>>  qgsrasterhistogramwidget.cpp:(.text+0x24b2): undefined reference to
>> `QwtPlotDict::setAutoDelete(bool)'
>>  qgsrasterhistogramwidget.cpp:(.text+0x250d): undefined reference to
>> `QwtLegend::QwtLegend(QWidget*)'
>>  qgsrasterhistogramwidget.cpp:(.text+0x2554): undefined reference to
>> `QwtPlot::insertLegend(QwtLegend*, QwtPlot::LegendPosition, double)'
>>  qgsrasterhistogramwidget.cpp:(.text+0x264c): undefined reference to
>> `QwtPlotGrid::QwtPlotGrid()'
>>  qgsrasterhistogramwidget.cpp:(.text+0x2694): undefined reference to
>> `QwtPlotItem::attach(QwtPlot*)'
>>  qgsrasterhistogramwidget.cpp:(.text+0x2fea): undefined reference to
>> `QwtPlotCurve::QwtPlotCurve(QString const&)'
>>  qgsrasterhistogramwidget.cpp:(.text+0x307d): undefined reference to
>> `QwtPlotItem::setRenderHint(QwtPlotItem::RenderHint, bool)'
>>  qgsrasterhistogramwidget.cpp:(.text+0x30c6): undefined reference to
>> `QwtPlotCurve::setPen(QPen const&)'
>>  qgsrasterhistogramwidget.cpp:(.text+0x327e): undefined reference to
>> `QwtPlotCurve::setData(QVector<double> const&, QVector<double> 
>> const&)'
>>  qgsrasterhistogramwidget.cpp:(.text+0x329b): undefined reference to
>> `QwtPlotItem::attach(QwtPlot*)'
>>  qgsrasterhistogramwidget.cpp:(.text+0x3467): undefined reference to
>> `QwtPlotMarker::QwtPlotMarker()'
>>  qgsrasterhistogramwidget.cpp:(.text+0x349c): undefined reference to
>> `QwtPlotItem::attach(QwtPlot*)'
>>  qgsrasterhistogramwidget.cpp:(.text+0x34cf): undefined reference to
>> `QwtPlotMarker::QwtPlotMarker()'
>>  qgsrasterhistogramwidget.cpp:(.text+0x3504): undefined reference to
>> `QwtPlotItem::attach(QwtPlot*)'
>>  qgsrasterhistogramwidget.cpp:(.text+0x3576): undefined reference to
>> `QwtPlotPicker::QwtPlotPicker(QwtPlotCanvas*)'
>>  qgsrasterhistogramwidget.cpp:(.text+0x36fb): undefined reference to
>> `QwtPlotZoomer::QwtPlotZoomer(QwtPlotCanvas*, bool)'
>>  CMakeFiles/qgis_gui.dir/raster/qgsrasterhistogramwidget.cpp.o: In  
>> function
>> `QgsRasterHistogramWidget::histoSaveAsImage(QString const&,  int, 
>> int, int)':
>>  qgsrasterhistogramwidget.cpp:(.text+0x3c40): undefined reference to
>> `QwtPlotPrintFilter::setOptions(int)'
>>  CMakeFiles/qgis_gui.dir/raster/qgsrasterhistogramwidget.cpp.o: In  
>> function
>> `findClosestTickVal(double, QwtScaleDiv*, int)':
>>  qgsrasterhistogramwidget.cpp:(.text+0x4afe): undefined reference to
>>  `QwtScaleDiv::ticks(int) const'
>>  qgsrasterhistogramwidget.cpp:(.text+0x4b21): undefined reference to
>>  `QwtScaleDiv::ticks(int) const'
>>  CMakeFiles/qgis_gui.dir/raster/qgsrasterhistogramwidget.cpp.o: In  
>> function
>> `QgsRasterHistogramWidget::histoPickerSelected(QPointF
>>  const&)':
>>  qgsrasterhistogramwidget.cpp:(.text+0x4d73): undefined reference to
>> `QwtPlot::axisScaleDiv(int)'
>>  qgsrasterhistogramwidget.cpp:(.text+0x4e34): undefined reference to
>> `QwtPlot::axisScaleDiv(int)'
>>  CMakeFiles/qgis_gui.dir/raster/qgsrasterhistogramwidget.cpp.o: In  
>> function
>> `QgsRasterHistogramWidget::updateHistoMarkers()':
>>  qgsrasterhistogramwidget.cpp:(.text+0x502f): undefined reference to
>> `QwtPlotItem::hide()'
>>  qgsrasterhistogramwidget.cpp:(.text+0x5042): undefined reference to
>> `QwtPlotItem::hide()'
>>  qgsrasterhistogramwidget.cpp:(.text+0x516c): undefined reference to
>> `QwtPlotMarker::setLineStyle(QwtPlotMarker::LineStyle)'
>>  qgsrasterhistogramwidget.cpp:(.text+0x5186): undefined reference to
>> `QwtPlotMarker::setLinePen(QPen const&)'
>>  qgsrasterhistogramwidget.cpp:(.text+0x519e): undefined reference to
>> `QwtPlotMarker::setXValue(double)'
>>  qgsrasterhistogramwidget.cpp:(.text+0x51b1): undefined reference to
>> `QwtPlotItem::show()'
>>  qgsrasterhistogramwidget.cpp:(.text+0x51c9): undefined reference to
>> `QwtPlotMarker::setLineStyle(QwtPlotMarker::LineStyle)'
>>  qgsrasterhistogramwidget.cpp:(.text+0x51e3): undefined reference to
>> `QwtPlotMarker::setLinePen(QPen const&)'
>>  qgsrasterhistogramwidget.cpp:(.text+0x51fb): undefined reference to
>> `QwtPlotMarker::setXValue(double)'
>>  qgsrasterhistogramwidget.cpp:(.text+0x520e): undefined reference to
>> `QwtPlotItem::show()'
>>  CMakeFiles/qgis_gui.dir/raster/qgsrasterhistogramwidget.cpp.o: In  
>> function
>> `Ui_QgsRasterHistogramWidgetBase::setupUi(QWidget*)':
>>
>> 
>> qgsrasterhistogramwidget.cpp:(.text._ZN31Ui_QgsRasterHistogramWidgetBase7setupUi
>> 
>> EP7QWidget[Ui_QgsRasterHistogramWidgetBase::setupUi(QWidget*)]+0x18c):
>>  undefined reference to `QwtPlot::QwtPlot(QWidget*)'
>>  collect2: ld returned 1 exit status
>>  make[2]: *** [output/lib/libqgis_gui.so.1.9.0] Error 1
>>  make[1]: *** [src/gui/CMakeFiles/qgis_gui.dir/all] Error 2
>>  make: *** [all] Error 2
>>
>>  ---------------
>>
>>  Is there a way to compile without QwtPlot. I assume that QGIS 
>> server  doesn't need
>> it? I haven't found the appropriate compile option for  suppressing 
>> the usage of
>> QwtPlot.
>>
>>  Alternatively I searched for all qwt-related ubuntu packages and 
>> they  are all installed,
>> incl. QwtPlot.
>>
>>  Strange ... if you have any hints how I get it to compile, please 
>> let  me know.
>>
>>  Andreas
>>
>>  --
>>  Andreas Neumann
>>  Böschacherstrasse 10A
>>  8624 Grüt (Gossau ZH)
>>  Switzerland
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer

-- 
 --
 Andreas Neumann
 Böschacherstrasse 10A
 8624 Grüt (Gossau ZH)
 Switzerland


More information about the Qgis-developer mailing list