[PyQt] potential bug in PyQt4 3c67710d0c58 snapshot

Phil Thompson phil at riverbankcomputing.com
Fri Oct 1 14:16:56 BST 2010


On Fri, 1 Oct 2010 09:02:46 -0400, Darren Dale <dsdale24 at gmail.com> wrote:
> I've installed last night's sip snapshot. When I try to make last
> night's PyQt snapshot, I get the following error:
> 
> /usr/bin/g++-4.2 -c -pipe -fPIC -O2 -Wall -W -DNDEBUG
> -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG
> -DQT_GUI_LIB -DQT_CORE_LIB -I.
>
-I/Users/darren/Downloads/PyQt-mac-gpl-snapshot-4.8-3c67710d0c58/qpy/QtGui
>
-I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
> -I/opt/local/libexec/qt4-mac-devel/mkspecs/default
> -I/opt/local/libexec/qt4-mac-devel/lib/QtGui.framework/Headers
> -I/opt/local/libexec/qt4-mac-devel/lib/QtCore.framework/Headers
> -I/opt/local/libexec/qt4-mac-devel/include
>
-F/Users/darren/Downloads/PyQt-mac-gpl-snapshot-4.8-3c67710d0c58/qpy/QtGui
> -F/opt/local/libexec/qt4-mac-devel/lib -o sipQtGuiQTextOptionTab.o
> sipQtGuiQTextOptionTab.cpp
> sipQtGuiQTextOptionTab.cpp: In function ‘void*
> init_QTextOption_Tab(sipSimpleWrapper*, PyObject*, PyObject*,
> PyObject**, PyObject**, PyObject**)’:
> sipQtGuiQTextOptionTab.cpp:206: error: no matching function for call
> to ‘QTextOption::Tab::Tab(qreal&, QTextOption::TabType&, QChar&)’
>
/opt/local/libexec/qt4-mac-devel/lib/QtGui.framework/Headers/qtextoption.h:70:
> note: candidates are: QTextOption::Tab::Tab()
>
/opt/local/libexec/qt4-mac-devel/lib/QtGui.framework/Headers/qtextoption.h:69:
> note:                 QTextOption::Tab::Tab(const QTextOption::Tab&)
> make[1]: *** [sipQtGuiQTextOptionTab.o] Error 1
> make: *** [all] Error 2
> 
> This is on a 64-bit SnowLeopard machine. Previous snapshots had built
ok.

That method was added in Qt v4.7. It looks like (somehow) configure.py has
detected Qt v4.7 but it is building against an earlier version.

Phil


More information about the PyQt mailing list