If you comment the function, you will get link errors because the
function was not compiled. Just comment the contents.

I'll try to fix this today and commit to master - are those the only
errors reported?

Etienne

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

Reply via email to