[PyKDE] PyQt-3.13 for Python-2.4

Phil Thompson phil at riverbankcomputing.co.uk
Tue Dec 14 09:36:54 GMT 2004


> I'm sorry. I've forgotten Qt-version.
>
> I encountered compile error.
>
> Linux + Python-2.4 + sip-4.1.1 + PyQt-3.13 with Qt-3.1.2
>
> $ make
>
> make[1]: Entering directory `/home/opensrc/PyQt-x11-gpl-3.13/qttable'
> g++ -c -pipe -fPIC -O2 -Wall -W -DQT_NO_DEBUG -I.
> -I/opt/python24/include/python2.4 -I/usr/lib/qt/include
> -I/usr/X11R6/include -o sipqttableQTable.o sipqttableQTable.cpp
> sipqttableQTable.cpp: In method `enum sipQTable::sipEditMode
> sipQTable::sipProtect_editMode()':
> sipqttableQTable.cpp:4413: static_cast from `QTable::EditMode' to
> `sipQTable::sipEditMode'
> sipqttableQTable.cpp:4414: warning: control reaches end of non-void
> function `sipQTable::sipProtect_editMode()'
> make[1]: *** [sipqttableQTable.o] Error 1
> make[1]: Leaving directory `/home/opensrc/PyQt-x11-gpl-3.13/qttable'
> make: *** [all] Error 2

Are you using an old compiler? You might try the current SIP snapshot
which has the change from using static_cast instead of a C style cast
backed out - there are too many old compilers out there. Or you can change
the offending line manually.

Phil




More information about the PyQt mailing list