[Qgis-developer] Problems building for QT5

Matthias Kuhn matthias at opengis.ch
Mon May 4 00:28:42 PDT 2015


Hi Giovanni,

There are two possibilities

 * PyQt4 with Qt5
 * PyQt5 with Qt5

Neither of them are tested with QGIS. At the time I ported the code they
were not available for my distro and I didn't compile them myself.
I assume PyQt4/Qt5 should work pretty smooth but if a distro drops Qt5
support it will likely switch to PyQt5 as well. So this option will
probably only be used on isolated platforms for testing.
PyQt5 will require some changes (foremost let cmake find the lib) but
the real challenge will be to update plugins themselves.

Matthias

On 05/04/2015 09:15 AM, G. Allegri wrote:
> Hi Jurgen,
> will the switch to Qt5 require adapting the Python bindings?
>
> giovanni
>
> 2015-05-04 9:12 GMT+02:00 Jürgen E. <jef at norbit.de>:
>> Hi Alessandro,
>>
>> On Mon, 04. May 2015 at 09:02:39 +0200, Alessandro Pasotti wrote:
>>> I set QT5 ON and I think I've installed all requirements (I'm on Ubuntu
>>> 14.04) but I get lot of errors while building.
>>>
>>> Here is the output:
>>>
>>> https://dpaste.de/dJNO
>>>
>>> It seems like it still links to Qt4, any hint?
>> Try WITH_BINDINGS FALSE
>>
>>
>> Jürgen
>>
>> --
>> Jürgen E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31
>> Dipl.-Inf. (FH)             Rheinstraße 13          Fax. +49-4931-918175-50
>> Software Engineer           D-26506 Norden             http://www.norbit.de
>> QGIS release manager (PSC)  Germany                    IRC: jef on FreeNode
>>
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>



More information about the Qgis-developer mailing list