[Qgis-developer] Error compiling qgis-server

Marco Hugentobler marco.hugentobler at sourcepole.ch
Tue Jul 24 23:13:35 PDT 2012


>I don't know anything about qgis server, but shouldn't some gui stuff
>be disabled when building only qgis server?

QGIS server itself does not need the gui library, only core and 
analysis. But it uses the data providers and the provider libs can use 
dialogs from gui lib (e.g. WMS provider lib uses QgsNewHttpConnection). 
Of course those parts of the provider libs are not used by the server, 
but the gui lib is still needed to link.

Regards,
Marco

Am 25.07.2012 00:03, schrieb Etienne Tourigny:
> 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 <aperi2007 at gmail.com> 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 <lists at linfiniti.com>
>>> Hi
>>>
>>> On Tue, Jul 24, 2012 at 3:35 PM, Andrea Peri <aperi2007 at gmail.com> 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 at 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
>>>> Qgis-developer at lists.osgeo.org
>>>> 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
>> Qgis-developer at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer


-- 
Dr. Marco Hugentobler
Sourcepole -  Linux & Open Source Solutions
Weberstrasse 5, CH-8004 Zürich, Switzerland
marco.hugentobler at sourcepole.ch http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee



More information about the Qgis-developer mailing list