[PyQt] Potential API break in PyQt4 snapshot
Phil Thompson
phil at riverbankcomputing.com
Tue May 31 09:54:19 BST 2016
On 30 May 2016, at 11:36 pm, Davide Pesavento <pesa at gentoo.org> wrote:
>
> On Mon, May 30, 2016 at 11:28 PM, Phil Thompson
> <phil at riverbankcomputing.com> wrote:
>> On 30 May 2016, at 8:25 pm, Davide Pesavento <pesa at gentoo.org> wrote:
>>>
>>> A Gentoo Linux user has encountered a compilation failure while
>>> building KDE4's kate editor (version 4.14.3) against the latest PyQt4
>>> snapshot (version 4.12.dev1605051544).
>>>
>>> Is this an unintentional API change in PyQt4, or is kate using
>>> undocumented/private APIs? Or something else?
>>
>> Probably something else - possibly trying to compile against Qt5 when configured for Qt4.
>
> How's that possible? There's no mention of "[Qq][Tt]5" in the whole
> build log, plus the errors clearly mention PyQt4 sip files, so I think
> it's building against Qt4 as it should.
It was a guess based on the fact that the method being complained about is present in Qt4 and not in Qt5.
Phil
> FYI, the full compiler command line was:
>
> cd /var/tmp/portage/kde-apps/kate-4.14.3/work/kate-4.14.3_build/addons/kate/pate/sip
> && /usr/bin/x86_64-pc-linux-gnu-g++
> -DKDE4_CMAKE_TOPLEVEL_DIR_LENGTH=42 -DKDE_DEFAULT_DEBUG_AREA=13040
> -DKDE_DEPRECATED_WARNINGS -DKTEXTEDITOR_NO_DEPRECATED
> -DQT_NO_CAST_TO_ASCII -DQT_NO_STL -DQT_USE_FAST_CONCATENATION
> -DQT_USE_FAST_OPERATOR_PLUS -D_BSD_SOURCE -D_DEFAULT_SOURCE
> -D_REENTRANT -D_XOPEN_SOURCE=500 -Dpython_module_PyKate4_kate_EXPORTS
> -I/var/tmp/portage/kde-apps/kate-4.14.3/work/kate-4.14.3_build/addons/kate/pate/sip
> -I/var/tmp/portage/kde-apps/kate-4.14.3/work/kate-4.14.3/addons/kate/pate/sip
> -I/var/tmp/portage/kde-apps/kate-4.14.3/work/kate-4.14.3_build
> -I/var/tmp/portage/kde-apps/kate-4.14.3/work/kate-4.14.3/kate/interfaces
> -I/var/tmp/portage/kde-apps/kate-4.14.3/work/kate-4.14.3/addons/kate/pate
> -I/var/tmp/portage/kde-apps/kate-4.14.3/work/kate-4.14.3/addons/kate/pate/../../../kate
> -I/var/tmp/portage/kde-apps/kate-4.14.3/work/kate-4.14.3/addons/kate/pate/../../../kate/interfaces
> -I/var/tmp/portage/kde-apps/kate-4.14.3/work/kate-4.14.3/addons/kate/pate/../../../kate/interfaces/kate
> -I/usr/include/KDE -I/usr/include/qt4/QtXmlPatterns
> -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtWebKit
> -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtTest
> -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtSql
> -I/usr/include/qt4/QtScriptTools -I/usr/include/qt4/QtScript
> -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtNetwork
> -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtDeclarative
> -I/usr/include/qt4/QtDBus -I/usr/include/qt4/Qt3Support
> -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore
> -I/usr/include/qt4/Qt -I/usr/share/qt4/mkspecs/default
> -I/usr/include/qt4 -I/usr/include/python3.4m -I/usr/include/solid
> -I/usr/include/kio -I/usr/include/dom -I/usr/include/ksettings
> -DQT_NO_DEBUG -DNDEBUG -march=sandybridge -O2 -pipe
> -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align
> -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security
> -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common
> -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden
> -fvisibility-inlines-hidden -fPIC -D_GNU_SOURCE
> -D_LARGEFILE64_SOURCE -o
> CMakeFiles/python_module_PyKate4_kate.dir/kate/sipkatepart0.o -c
> /var/tmp/portage/kde-apps/kate-4.14.3/work/kate-4.14.3_build/addons/kate/pate/sip/kate/sipkatepart0.cpp
>
> Thanks,
> Davide
>
More information about the PyQt
mailing list