Hi Etienne,<br><br>>I'll try to fix this today and commit to master - are those the only<br>
>errors reported?<br>
<span class="HOEnZb"><font color="#888888"><br>yes, <br>after comment correctly as you suggest.<br>It compile without error.<br><br>Thx for fixing it,<br><br>Andrea<br></font></span><br><br><div class="gmail_quote">2012/7/25 Etienne Tourigny <span dir="ltr"><<a href="mailto:etourigny.dev@gmail.com" target="_blank">etourigny.dev@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If you comment the function, you will get link errors because the<br>
function was not compiled. Just comment the contents.<br>
<br>
I'll try to fix this today and commit to master - are those the only<br>
errors reported?<br>
<span class="HOEnZb"><font color="#888888"><br>
Etienne<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Tue, Jul 24, 2012 at 7:45 PM, Andrea Peri <<a href="mailto:aperi2007@gmail.com">aperi2007@gmail.com</a>> wrote:<br>
>>I don't know anything about qgis server, but shouldn't some gui stuff<br>
>>be disabled when building only qgis server?<br>
><br>
> Etienne,<br>
> thx for hint.<br>
><br>
> I tried to comment it<br>
> but compiling there is this other error:<br>
><br>
><br>
>>/home/archivio/tomcat/software/qgis/Quantum-GIS/src/gui/raster/qgsrasterhistogramwidget.cpp:<br>
>> In function âQString<br>
>>findClosestTickVal(double, QwtScaleDiv*, int)â:<br>
>>/home/archivio/tomcat/software/qgis/Quantum-GIS/src/gui/raster/qgsrasterhistogramwidget.cpp:841:<br>
>> error: âmaxâ was not<br>
>>declared in this scope<br>
><br>
>>make[2]: ***<br>
>> [src/gui/CMakeFiles/qgis_gui.dir/raster/qgsrasterhistogramwidget.cpp.o]<br>
>> Error 1<br>
>>make[1]: *** [src/gui/CMakeFiles/qgis_gui.dir/all] Error 2<br>
>>make: *** [all] Error 2<br>
><br>
> So I following the same ideas , try to remove the code comment all this<br>
> functions:<br>
><br>
> findClosestPickVal ,<br>
> QgsRasterHistogramWidget::histoPickerSelected( const QPointF & pos )<br>
> and<br>
> void QgsRasterHistogramWidget::histoPickerSelectedQwt5( const QwtDoublePoint<br>
> & pos )<br>
><br>
> After this there was no errore at compile time, but I have an error at<br>
> linking-time<br>
><br>
> -------------------<br>
> [ 66%] Building CXX object<br>
> src/gui/CMakeFiles/qgis_gui.dir/moc_qgsquerybuilder.cxx.o<br>
> Linking CXX shared library ../../output/lib/libqgis_gui.so<br>
> CMakeFiles/qgis_gui.dir/raster/moc_qgsrasterhistogramwidget.cxx.o: In<br>
> function `QgsRasterHistogramWidget::qt_metacall(QMetaObject::Call, int,<br>
> void**)':<br>
> moc_qgsrasterhistogramwidget.cxx:(.text+0x1a9): undefined reference to<br>
> `QgsRasterHistogramWidget::histoPickerSelected(QPointF const&)'<br>
> moc_qgsrasterhistogramwidget.cxx:(.text+0x1c8): undefined reference to<br>
> `QgsRasterHistogramWidget::histoPickerSelectedQwt5(QPointF const&)'<br>
> collect2: ld returned 1 exit status<br>
> make[2]: *** [output/lib/libqgis_gui.so.1.9.0] Error 1<br>
><br>
> make[1]: *** [src/gui/CMakeFiles/qgis_gui.dir/all] Error 2<br>
> make: *** [all] Error 2<br>
> -------------------<br>
><br>
><br>
><br>
><br>
> 2012/7/25 Etienne Tourigny <<a href="mailto:etourigny.dev@gmail.com">etourigny.dev@gmail.com</a>><br>
>><br>
>> All other test environments use high qwt versions, that's why it was<br>
>> not caught.<br>
>><br>
>> Qwt is a serious pain to support, because of so many different API<br>
>> versions...<br>
>><br>
>> My advice for now: comment-out the offending line(s), it won't do much<br>
>> harm - the min/max picker will probably not work.<br>
>><br>
>> I don't know anything about qgis server, but shouldn't some gui stuff<br>
>> be disabled when building only qgis server?<br>
>><br>
>> Etienne<br>
>><br>
>> On Tue, Jul 24, 2012 at 6:56 PM, Andrea Peri <<a href="mailto:aperi2007@gmail.com">aperi2007@gmail.com</a>> wrote:<br>
>> > I guess yes.<br>
>> ><br>
>> > My qwt is 5.1.1.<br>
>> ><br>
>> > Unfortunately this is the version available on redhat (i'm using it).<br>
>> ><br>
>> > perhaps is allowed disable it for a qgis-server only compile ?<br>
>> ><br>
>> ><br>
>> ><br>
>> > 2012/7/24 Tim Sutton <<a href="mailto:lists@linfiniti.com">lists@linfiniti.com</a>><br>
>> >><br>
>> >> Hi<br>
>> >><br>
>> >> On Tue, Jul 24, 2012 at 3:35 PM, Andrea Peri <<a href="mailto:aperi2007@gmail.com">aperi2007@gmail.com</a>><br>
>> >> wrote:<br>
>> >> > Hi,<br>
>> >> ><br>
>> >> > try-ing to compile a qgis-server version of qgis ,<br>
>> >> > from latest svn version of qgis and using<br>
>> >> > this settings:<br>
>> >> ><br>
>> >> > with_bindings OFF<br>
>> >> > with_desktop OFF<br>
>> >> > with_mapserver ON<br>
>> >> ><br>
>> >> > I'm having this error:<br>
>> >> ><br>
>> >> > ------------<br>
>> >> > Scanning dependencies of target qgis_gui<br>
>> >> > [ 51%] Building CXX object<br>
>> >> > src/gui/CMakeFiles/qgis_gui.dir/raster/qgsrasterrendererwidget.cpp.o<br>
>> >> > [ 51%] Building CXX object<br>
>> >> ><br>
>> >> ><br>
>> >> > src/gui/CMakeFiles/qgis_gui.dir/raster/qgsmultibandcolorrendererwidget.cpp.o<br>
>> >> > [ 51%] Building CXX object<br>
>> >> ><br>
>> >> > src/gui/CMakeFiles/qgis_gui.dir/raster/qgspalettedrendererwidget.cpp.o<br>
>> >> > [ 51%] Building CXX object<br>
>> >> ><br>
>> >> ><br>
>> >> > src/gui/CMakeFiles/qgis_gui.dir/raster/qgssinglebandgrayrendererwidget.cpp.o<br>
>> >> > [ 51%] Building CXX object<br>
>> >> ><br>
>> >> ><br>
>> >> > src/gui/CMakeFiles/qgis_gui.dir/raster/qgssinglebandpseudocolorrendererwidget.cpp.o<br>
>> >> > [ 51%] Building CXX object<br>
>> >> > src/gui/CMakeFiles/qgis_gui.dir/raster/qgsrasterhistogramwidget.cpp.o<br>
>> >> ><br>
>> >> ><br>
>> >> > /home/archivio/tomcat/software/qgis/Quantum-GIS/src/gui/raster/qgsrasterhistogramwidget.cpp:<br>
>> >> > In function âQString findClosestTickVal(double, QwtScaleDiv*, int)â:<br>
>> >> ><br>
>> >> ><br>
>> >> > /home/archivio/tomcat/software/qgis/Quantum-GIS/src/gui/raster/qgsrasterhistogramwidget.cpp:833:<br>
>> >> > error: âclass QwtScaleDivâ has no member named âupperBoundâ<br>
>> >> > make[2]: ***<br>
>> >> ><br>
>> >> > [src/gui/CMakeFiles/qgis_gui.dir/raster/qgsrasterhistogramwidget.cpp.o]<br>
>> >> > Error 1<br>
>> >> > make[1]: *** [src/gui/CMakeFiles/qgis_gui.dir/all] Error 2<br>
>> >> > make: *** [all] Error 2<br>
>> >> > [user@server build-master]$<br>
>> >> > ---------------------------------<br>
>> >> ><br>
>> >> > I never seen this error before, probably miss some new dependencies.<br>
>> >> ><br>
>> >><br>
>> >> Maybe your qwt lib is too old?<br>
>> >><br>
>> >> Regards<br>
>> >><br>
>> >> Tim<br>
>> >><br>
>> >> > Any hint on this ?<br>
>> >> ><br>
>> >> > thx,<br>
>> >> ><br>
>> >> > --<br>
>> >> > -----------------<br>
>> >> > Andrea Peri<br>
>> >> > . . . . . . . . .<br>
>> >> > qwerty àèìòù<br>
>> >> > -----------------<br>
>> >> ><br>
>> >> ><br>
>> >> > _______________________________________________<br>
>> >> > Qgis-developer mailing list<br>
>> >> > <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
>> >> > <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
>> >> ><br>
>> >><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> Tim Sutton - QGIS Project Steering Committee Member (Release Manager)<br>
>> >> ==============================================<br>
>> >> Please do not email me off-list with technical<br>
>> >> support questions. Using the lists will gain<br>
>> >> more exposure for your issues and the knowledge<br>
>> >> surrounding your issue will be shared with all.<br>
>> >><br>
>> >> Visit <a href="http://linfiniti.com" target="_blank">http://linfiniti.com</a> to find out about:<br>
>> >> * QGIS programming and support services<br>
>> >> * Mapserver and PostGIS based hosting plans<br>
>> >> * FOSS Consulting Services<br>
>> >> Skype: timlinux<br>
>> >> Irc: timlinux on #qgis at <a href="http://freenode.net" target="_blank">freenode.net</a><br>
>> >> ==============================================<br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > -----------------<br>
>> > Andrea Peri<br>
>> > . . . . . . . . .<br>
>> > qwerty àèìòù<br>
>> > -----------------<br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > Qgis-developer mailing list<br>
>> > <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
>> > <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
>> ><br>
><br>
><br>
><br>
><br>
> --<br>
> -----------------<br>
> Andrea Peri<br>
> . . . . . . . . .<br>
> qwerty àèìòù<br>
> -----------------<br>
><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br><br>