Hi!<br><br>I once had the problem that libqwt-dev and libqwt6 was installed.. but there is only libqwt5-qt4-dev as a binding ..<br>for me it compiled without problems but segfaulted during usage ..<br>maybe you have a similar problem?<br>
<br>regards<br>Werner<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 26, 2012 at 3:49 PM, Andreas Neumann <span dir="ltr"><<a href="mailto:a.neumann@carto.net" target="_blank">a.neumann@carto.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
On a Ubuntu 10.04 LTS server I can't compile QGIS server - I get the following error message:<br>
<br>
----------------------<br>
<br>
CMakeFiles/qgis_gui.dir/<u></u>raster/<u></u>qgsrasterhistogramwidget.cpp.<u></u>o: In function `QgsRasterHistogramWidget::<u></u>refreshHistogram()':<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x24b2): undefined reference to `QwtPlotDict::setAutoDelete(<u></u>bool)'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x250d): undefined reference to `QwtLegend::QwtLegend(QWidget*<u></u>)'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x2554): undefined reference to `QwtPlot::insertLegend(<u></u>QwtLegend*, QwtPlot::LegendPosition, double)'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x264c): undefined reference to `QwtPlotGrid::QwtPlotGrid()'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x2694): undefined reference to `QwtPlotItem::attach(QwtPlot*)<u></u>'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x2fea): undefined reference to `QwtPlotCurve::QwtPlotCurve(<u></u>QString const&)'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x307d): undefined reference to `QwtPlotItem::setRenderHint(<u></u>QwtPlotItem::RenderHint, bool)'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x30c6): undefined reference to `QwtPlotCurve::setPen(QPen const&)'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x327e): undefined reference to `QwtPlotCurve::setData(<u></u>QVector<double> const&, QVector<double> const&)'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x329b): undefined reference to `QwtPlotItem::attach(QwtPlot*)<u></u>'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x3467): undefined reference to `QwtPlotMarker::QwtPlotMarker(<u></u>)'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x349c): undefined reference to `QwtPlotItem::attach(QwtPlot*)<u></u>'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x34cf): undefined reference to `QwtPlotMarker::QwtPlotMarker(<u></u>)'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x3504): undefined reference to `QwtPlotItem::attach(QwtPlot*)<u></u>'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x3576): undefined reference to `QwtPlotPicker::QwtPlotPicker(<u></u>QwtPlotCanvas*)'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x36fb): undefined reference to `QwtPlotZoomer::QwtPlotZoomer(<u></u>QwtPlotCanvas*, bool)'<br>
CMakeFiles/qgis_gui.dir/<u></u>raster/<u></u>qgsrasterhistogramwidget.cpp.<u></u>o: In function `QgsRasterHistogramWidget::<u></u>histoSaveAsImage(QString const&, int, int, int)':<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x3c40): undefined reference to `QwtPlotPrintFilter::<u></u>setOptions(int)'<br>
CMakeFiles/qgis_gui.dir/<u></u>raster/<u></u>qgsrasterhistogramwidget.cpp.<u></u>o: In function `findClosestTickVal(double, QwtScaleDiv*, int)':<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x4afe): undefined reference to `QwtScaleDiv::ticks(int) const'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x4b21): undefined reference to `QwtScaleDiv::ticks(int) const'<br>
CMakeFiles/qgis_gui.dir/<u></u>raster/<u></u>qgsrasterhistogramwidget.cpp.<u></u>o: In function `QgsRasterHistogramWidget::<u></u>histoPickerSelected(QPointF const&)':<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x4d73): undefined reference to `QwtPlot::axisScaleDiv(int)'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x4e34): undefined reference to `QwtPlot::axisScaleDiv(int)'<br>
CMakeFiles/qgis_gui.dir/<u></u>raster/<u></u>qgsrasterhistogramwidget.cpp.<u></u>o: In function `QgsRasterHistogramWidget::<u></u>updateHistoMarkers()':<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x502f): undefined reference to `QwtPlotItem::hide()'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x5042): undefined reference to `QwtPlotItem::hide()'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x516c): undefined reference to `QwtPlotMarker::setLineStyle(<u></u>QwtPlotMarker::LineStyle)'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x5186): undefined reference to `QwtPlotMarker::setLinePen(<u></u>QPen const&)'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x519e): undefined reference to `QwtPlotMarker::setXValue(<u></u>double)'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x51b1): undefined reference to `QwtPlotItem::show()'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x51c9): undefined reference to `QwtPlotMarker::setLineStyle(<u></u>QwtPlotMarker::LineStyle)'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x51e3): undefined reference to `QwtPlotMarker::setLinePen(<u></u>QPen const&)'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x51fb): undefined reference to `QwtPlotMarker::setXValue(<u></u>double)'<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text+0x520e): undefined reference to `QwtPlotItem::show()'<br>
CMakeFiles/qgis_gui.dir/<u></u>raster/<u></u>qgsrasterhistogramwidget.cpp.<u></u>o: In function `Ui_<u></u>QgsRasterHistogramWidgetBase::<u></u>setupUi(QWidget*)':<br>
qgsrasterhistogramwidget.cpp:(<u></u>.text._ZN31Ui_<u></u>QgsRasterHistogramWidgetBase7s<u></u>etupUiEP7QWidget[Ui_<u></u>QgsRasterHistogramWidgetBase::<u></u>setupUi(QWidget*)]+0x18c): undefined reference to `QwtPlot::QwtPlot(QWidget*)'<br>
collect2: ld returned 1 exit status<br>
make[2]: *** [output/lib/libqgis_gui.so.1.<u></u>9.0] Error 1<br>
make[1]: *** [src/gui/CMakeFiles/qgis_gui.<u></u>dir/all] Error 2<br>
make: *** [all] Error 2<br>
<br>
---------------<br>
<br>
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.<br>
<br>
Alternatively I searched for all qwt-related ubuntu packages and they are all installed, incl. QwtPlot.<br>
<br>
Strange ... if you have any hints how I get it to compile, please let me know.<br>
<br>
Andreas<br>
<br>
--<br>
Andreas Neumann<br>
Böschacherstrasse 10A<br>
8624 Grüt (Gossau ZH)<br>
Switzerland<br>
______________________________<u></u>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-<u></u>developer</a><br>
</blockquote></div><br></div>