[PyKDE] Problem compiling PyQt4 against Qt 4.1 RC 1

Phil Thompson phil at riverbankcomputing.co.uk
Sat Dec 10 18:30:52 GMT 2005


On Saturday 10 December 2005 4:40 pm, Detlev Offenbach wrote:
> Hi Phil,
>
> I tried to compile the latest PyQt4 snapshot against Qt 4.1 RC 1 under SuSE
> 10. Unfortunately the compile aborted with the error shown below.
> -------------------
> g++ -c -pipe -fno-strict-aliasing -fPIC -O2 -Wall -W -D_REENTRANT
> -DQT_NO_DEBUG -I. -I/usr/include/QtCore
> -I/home/detlev/usr/include/python2.4 -I/usr/include -I/usr/X11R6/include -o
> sipQtCoreQTextDecoder.o
> sipQtCoreQTextDecoder.cpp
> sipQtCoreQTextDecoder.cpp: In function »void*
> init_QTextDecoder(sipWrapper*, PyObject*, sipWrapper**, int*)«:
> /usr/include/QtCore/qtextcodec.h:145: Error:
> »QTextDecoder::QTextDecoder(const QTextDecoder&)« is private
> sipQtCoreQTextDecoder.cpp:118: Fehler: in diesem Zusammenhang
> -------------------
>
> Same happens for sipQtCoreQTextEncoder.cpp. Please advise.

Edit the corresponding .sip files and make the copy ctors private. Qt 4.1 
isn't yet supported by PyQt4.

Phil




More information about the PyQt mailing list