[Qgis-user] Re: Problems building qgis

Pierre-Louis Bonicoli pierre-louis.bonicoli at bioecoforests.com
Mon Jan 16 20:13:43 PST 2012


Oliver Burger <obgr_seneca at ...> writes:

> 
> Hi there,
> 
> I'm facing problems (re-)building qgis-1.7.3 on Mageia:
> It did build four weeks ago, but we had quite some changes on qt since.
> 
> Here is the building log containing the error. Could anyone give me a hint?
> 
> Thanks,
> 
> Oliver
> 
> ---> log <---
> [ 63%] Built target python_module_qgis_analysis
> [ 63%] Generating core/sipcorepart0.cpp, core/sipcorepart1.cpp,
> core/sipcorepart2.cpp, core/sipcorepart3.cpp
> 
> sip: Deprecation warning:
> /home/qgis/BUILD/qgis-1.7.3/python/core/core.sip:2: %Module version
> number should be specified using the 'version' argument
> sip: Deprecation warning:
> /home/qgis/BUILD/qgis-1.7.3/python/core/qgsnetworkaccessmanager.sip:36:
> Annotation is invalid
> Scanning dependencies of target python_module_qgis_core
> [ 63%] Building CXX object
> python/CMakeFiles/python_module_qgis_core.dir/core/sipcorepart0.cpp.o
> [ 63%] Building CXX object
> python/CMakeFiles/python_module_qgis_core.dir/core/sipcorepart1.cpp.o
> /home/qgis/BUILD/qgis-1.7.3/build/python/core/sipcorepart1.cpp: In
> function 'PyObject* meth_QgsSymbolV2_renderHints(PyObject*,
> PyObject*)':
> /home/qgis/BUILD/qgis-1.7.3/build/python/core/sipcorepart1.cpp:6671:42:
> error: passing 'const QgsSymbolV2' as 'this' argument of 'int
> QgsSymbolV2::renderHints()' discards qualifiers [-fpermissive]
> /home/qgis/BUILD/qgis-1.7.3/build/python/core/sipcorepart1.cpp: In
> function 'PyObject*
> meth_QgsSymbolV2RenderContext_setSelected(PyObject*, PyObject*)':
> /home/qgis/BUILD/qgis-1.7.3/build/python/core/sipcorepart1.cpp:7069:35:
> error: passing 'const QgsSymbolV2RenderContext' as 'this' argument of
> 'void QgsSymbolV2RenderContext::setSelected(bool)' discards qualifiers
> [-fpermissive]
> make[2]: ***
[python/CMakeFiles/python_module_qgis_core.dir/core/sipcorepart1.cpp.o]
> Error 1
> make[1]: *** [python/CMakeFiles/python_module_qgis_core.dir/all] Error 2
> make: *** [all] Error 2
> error: Bad exit status from /home/qgis/BUILDROOT/rpm-tmp.ySzrge (%build)
> 

Hi !

Try the following patch (see revision 893f305c512a2b5266fb79165c34ac6da11e0a56 ):

--- ./cmake/SIPMacros.cmake.old    2012-01-17 04:57:51.000000000 +0100
+++ ./cmake/SIPMacros.cmake    2012-01-17 04:49:50.000000000 +0100
@@ -94,7 +94,7 @@
         ADD_DEFINITIONS( /wd4996 /wd4701 /wd4702 )
       ELSE(MSVC)
         # disable all warnings
-        ADD_DEFINITIONS( -w )
+        ADD_DEFINITIONS( -w -fpermissive )
       ENDIF(MSVC)
     ENDIF(PEDANTIC)


Pierre-Louis





More information about the Qgis-user mailing list