PyQt6-DataVisualization 6.3 does not compile with Qt 6.2.4

Phil Thompson phil at riverbankcomputing.com
Wed Apr 13 14:08:42 BST 2022


On 13/04/2022 13:03, Ben Greiner wrote:
> Hi,
> 
> When I try to build the new sources with Qt 6.2.4 I get errors:
> 
>> [    1s] [450/542] keeping libQt6DataVisualization6-6.2.4-1.1
>> ...
>> [   11s] g++ -c -pipe -O2 -Wall -D_FORTIFY_SOURCE=2 
>> -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables 
>> -fstack-clash-protection -Werror=return-type -flto=auto -g -O2 
>> -fno-exceptions -Wall -Wextra -D_REENTRANT -fPIC 
>> -DPy_LIMITED_API=0x03070000 -DSIP_PROTECTED_IS_PUBLIC 
>> -Dprotected=public -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN 
>> -DQT_DATAVISUALIZATION_LIB -DQT_QUICK_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB 
>> -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I. 
>> -I.. -I/usr/include/python3.9 -I/usr/include/qt6 
>> -I/usr/include/qt6/QtDataVisualization -I/usr/include/qt6/QtQuick 
>> -I/usr/include/qt6/QtOpenGL -I/usr/include/qt6/QtGui 
>> -I/usr/include/qt6/QtQmlModels -I/usr/include/qt6/QtQml 
>> -I/usr/include/qt6/QtNetwork -I/usr/include/qt6/QtCore -I. 
>> -I/usr/lib64/qt6/mkspecs/linux-g++ -o 
>> sipQtDataVisualizationQScatterDataProxy.o 
>> sipQtDataVisualizationQScatterDataProxy.cpp
>> [   11s] 
>> /home/abuild/rpmbuild/BUILD/PyQt6_DataVisualization-6.3.0/build/QtDataVisualization/sipQtDataVisualizationQSurface3DSeries.cpp: 
>> In function 'PyObject* 
>> meth_QSurface3DSeries_setWireframeColor(PyObject*, PyObject*)':
>> [   11s] 
>> /home/abuild/rpmbuild/BUILD/PyQt6_DataVisualization-6.3.0/build/QtDataVisualization/sipQtDataVisualizationQSurface3DSeries.cpp:693:21: 
>> error: 'class QSurface3DSeries' has no member named 
>> 'setWireframeColor'
>> [   11s]   693 |             sipCpp->setWireframeColor(*a0);
>> [   11s]       |                     ^~~~~~~~~~~~~~~~~
>> [   11s] 
>> /home/abuild/rpmbuild/BUILD/PyQt6_DataVisualization-6.3.0/build/QtDataVisualization/sipQtDataVisualizationQSurface3DSeries.cpp: 
>> In function 'PyObject* meth_QSurface3DSeries_wireframeColor(PyObject*, 
>> PyObject*)':
>> [   11s] 
>> /home/abuild/rpmbuild/BUILD/PyQt6_DataVisualization-6.3.0/build/QtDataVisualization/sipQtDataVisualizationQSurface3DSeries.cpp:721:44: 
>> error: 'const class QSurface3DSeries' has no member named 
>> 'wireframeColor'
>> [   11s]   721 |             sipRes = new 
>>  ::QColor(sipCpp->wireframeColor());
>> [   11s]       | 
>>                                            ^~~~~~~~~~~~~~
>> 
> 
> Full build log:
> https://susepaste.org/77347527
> 
> 
> Shouldn't PyQt 6.3 still support all the features from 6.2?
> https://www.riverbankcomputing.com/static/Docs/PyQt6/installation.html#understanding-the-correct-version-to-install
> 
>> For a particular minor version/n/it will build against any version of 
>> Qt v6, but will not support any new features introduced in Qt 
>> v6./n+1/or later.

There is a hole in the timeline. Change the %Timeline directive in 
QtDataVisualizationmod.sip to ...

%Timeline {QtDataVisualization_6_1_0 QtDataVisualization_6_2_0 
QtDataVisualization_6_3_0}

It will be fixed in the next snapshot.

Thanks,
Phil


More information about the PyQt mailing list