[PyQt] Problem compiling PyQt on Redhat 6

Nikolaus.Schueler at lantiq.com Nikolaus.Schueler at lantiq.com
Thu Mar 12 10:14:59 GMT 2015


Hi,

I'm trying to compile PyQt, version 4.9.5 and get the following error

/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/phonon/sipphononpart0.cpp:2944: error: expected ')' before ';' token
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/sip/QtCore/qlist.sip:40: error: request for member 'size' in '* sipCpp', which is of non-class type 'int'
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/sip/QtCore/qlist.sip:44: error: request for member 'size' in '* sipCpp', which is of non-class type 'int'
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/sip/QtCore/qlist.sip:46: error: 'Phonon' is not a class or namespace
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/sip/QtCore/qlist.sip:46: error: 't' was not declared in this scope
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/sip/QtCore/qlist.sip:46: error: expected type-specifier before 'Phonon'
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/sip/QtCore/qlist.sip:46: error: expected ';' before 'Phonon'
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/sip/QtCore/qlist.sip:52: error: type '<type error>' argument given to 'delete', expected pointer
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/phonon/sipphononpart0.cpp: At global scope:
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/phonon/sipphononpart0.cpp:3240: error: 'Phonon' has not been declared
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/phonon/sipphononpart0.cpp:3240: error: expected '{' before 'VolumeSlider'
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/phonon/sipphononpart0.cpp:3241: error: invalid type in declaration before '{' token
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/phonon/sipphononpart0.cpp:3241: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/phonon/sipphononpart0.cpp:3242: error: expected primary-expression before 'public'
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/phonon/sipphononpart0.cpp:3242: error: expected '}' before 'public'
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/phonon/sipphononpart0.cpp:3242: error: expected ',' or ';' before 'public'
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/phonon/sipphononpart0.cpp:3244: error: 'Phonon' has not been declared
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/phonon/sipphononpart0.cpp:3244: error: expected ')' before '*' token
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/phonon/sipphononpart0.cpp:3245: error: declaration of '~sipPhonon_VolumeSlider' as non-member
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/phonon/sipphononpart0.cpp:3249: error: non-member function 'const QMetaObject* metaObject()' cannot have cv-qualifier
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/phonon/sipphononpart0.cpp:3255: error: expected unqualified-id before 'public'
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/phonon/sipphononpart0.cpp:3258: error: non-member function 'QSize sizeHint()' cannot have cv-qualifier
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/phonon/sipphononpart0.cpp:3259: error: non-member function 'QSize minimumSizeHint()' cannot have cv-qualifier
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/phonon/sipphononpart0.cpp:3260: error: non-member function 'int heightForWidth(int)' cannot have cv-qualifier
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/phonon/sipphononpart0.cpp:3261: error: non-member function 'QPaintEngine* paintEngine()' cannot have cv-qualifier
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/phonon/sipphononpart0.cpp:3288: error: non-member function 'int metric(QPaintDevice::PaintDeviceMetric)' cannot have cv-qualifier
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/phonon/sipphononpart0.cpp:3290: error: non-member function 'QVariant inputMethodQuery(Qt::InputMethodQuery)' cannot have cv-qualifier
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/phonon/sipphononpart0.cpp:3304: error: expected unqualified-id before 'public'
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/phonon/sipphononpart0.cpp:3307: error: expected unqualified-id before 'private'
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/phonon/sipphononpart0.cpp:3309: error: 'sipPhonon_VolumeSlider& operator=(const sipPhonon_VolumeSlider&)' must be a nonstatic member function
/opt/fwtmp/schueler/repos/thg-linux-build/install/build.64/PyQt-x11-gpl-4.9.5/phonon/sipphononpart0.cpp:3312: error: expected declaration before '}' token
make[1]: *** [sipphononpart0.o] Error 1
make: *** [install] Error 2
Problem with c_install.
yes: standard output: Broken pipe
yes: write error

c_install is a procedure from the Perl build script my colleague wrote.

I tried to google the problem, but found nothing. Any idea what the reason could be?

Thanks in advance and Best Regards

Nik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150312/567863b6/attachment-0001.html>


More information about the PyQt mailing list