Hello,

I am trying to install PyQt (and PyKDE, hopefully) on mandrake 10.1 community (since sadly there are no RPM packages available).

I have installed the latest versions of qscintilla and sip by hand, following the READMEs to the letter.

But PyQt won't compile. I have tried three different compilers (gcc 3.3.4, gcc 3.4.1, gcc 4.0.0), and they all give a similar error:

[EMAIL PROTECTED] PyQt-x11-gpl-3.13]# python configure.py
This is the GPL version of PyQt 3.13 (licensed under the GNU General Public
License) for Python 2.3.4 on linux2.

Type 'L' to view the license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.

Do you accept the terms of the license? yes
SIP 4.1.1 is being used.
QScintilla 1.4 is being used.
Checking to see if the qtcanvas module should be built...
Checking to see if the qtnetwork module should be built...
Checking to see if the qttable module should be built...
Checking to see if the qtxml module should be built...
Checking to see if the qtgl module should be built...
Checking to see if the qtui module should be built...
Checking to see if the qtsql module should be built...
Checking to see if the qtext module should be built...
Checking to see if the QAssistantClient class is available...
Using existing features file.
These PyQt modules will be built: qt qtcanvas qtnetwork qttable qtxml qtui
qtsql qtext.
Support for these Qt classes has been disabled: .
The PyQt modules will be installed in /usr/lib/python2.3/site-packages.
The PyQt .sip files will be installed in /usr/share/sip.
pyuic will be installed in /usr/bin.
pylupdate will be installed in /usr/bin.
Generating the C++ source for the qt module...
Creating the Makefile for the qt module...
Generating the C++ source for the qtext module...
Creating the Makefile for the qtext module...
Generating the C++ source for the qtsql module...
Creating the Makefile for the qtsql module...
Generating the C++ source for the qtui module...
Creating the Makefile for the qtui module...
Generating the C++ source for the qtcanvas module...
Creating the Makefile for the qtcanvas module...
Generating the C++ source for the qtnetwork module...
Creating the Makefile for the qtnetwork module...
Generating the C++ source for the qttable module...
Creating the Makefile for the qttable module...
Generating the C++ source for the qtxml module...
Creating the Makefile for the qtxml module...
Creating pyuic Makefile...
Creating pylupdate Makefile...
Creating top level Makefile...
Creating pyqtconfig.py...
[EMAIL PROTECTED] PyQt-x11-gpl-3.13]# make
make[1]: Entering directory `/dat/pub/src/not-mau/PyQt-x11-gpl-3.13/qt'
g++ -c -pipe -fno-exceptions -fPIC -O2 -fomit-frame-pointer -pipe -march=i586 -mtune=pentiumpro -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.3 -I/usr/lib/qt3//include -I/usr/X11R6/include -o sipqtcmodule.o sipqtcmodule.cpp
In file included from sipqtQSGIStyle.h:33,
from sipqtcmodule.cpp:91:
sipqtQMotifStyle.h:66: error: syntax error before `{' token
sipqtQMotifStyle.h:69: error: destructors must be member functions
sipqtQMotifStyle.h:69: error: virtual outside class declaration
sipqtQMotifStyle.h:91: error: non-member function `QMetaObject* metaObject()' cannot have `const' method qualifier
sipqtQMotifStyle.h:98: error: non-member function `QRect itemRect(QPainter*, const QRect&, int, bool, const QPixmap*, const QString&, int)' cannot have `const' method qualifier
sipqtQMotifStyle.h:99: error: non-member function `void drawItem(QPainter*, const QRect&, int, const QColorGroup&, bool, const QPixmap*, const QString&, int, const QColor*)' cannot have `const' method qualifier
sipqtQMotifStyle.h:100: error: non-member function `void drawPrimitive(QStyle::PrimitiveElement, QPainter*, const QRect&, const QColorGroup&, unsigned int, const QStyleOption&)' cannot have `const' method qualifier
sipqtQMotifStyle.h:101: error: non-member function `void drawControl(QStyle::ControlElement, QPainter*, const QWidget*, const QRect&, const QColorGroup&, unsigned int, const QStyleOption&)' cannot have `const' method qualifier
sipqtQMotifStyle.h:102: error: non-member function `void drawControlMask(QStyle::ControlElement, QPainter*, const QWidget*, const QRect&, const QStyleOption&)' cannot have `const' method qualifier
sipqtQMotifStyle.h:103: error: non-member function `QRect subRect(QStyle::SubRect, const QWidget*)' cannot have `const' method qualifier
sipqtQMotifStyle.h:104: error: non-member function `void drawComplexControl(QStyle::ComplexControl, QPainter*, const QWidget*, const QRect&, const QColorGroup&, unsigned int, unsigned int, unsigned int, const QStyleOption&)' cannot have `const' method qualifier
sipqtQMotifStyle.h:105: error: non-member function `void drawComplexControlMask(QStyle::ComplexControl, QPainter*, const QWidget*, const QRect&, const QStyleOption&)' cannot have `const' method qualifier
sipqtQMotifStyle.h:106: error: non-member function `QRect querySubControlMetrics(QStyle::ComplexControl, const QWidget*, QStyle::SubControl, const QStyleOption&)' cannot have `const' method qualifier
sipqtQMotifStyle.h:107: error: non-member function `QStyle::SubControl querySubControl(QStyle::ComplexControl, const QWidget*, const QPoint&, const QStyleOption&)' cannot have `const' method qualifier
sipqtQMotifStyle.h:108: error: non-member function `int pixelMetric(QStyle::PixelMetric, const QWidget*)' cannot have `const' method qualifier
sipqtQMotifStyle.h:109: error: non-member function `QSize sizeFromContents(QStyle::ContentsType, const QWidget*, const QSize&, const QStyleOption&)' cannot have `const' method qualifier
sipqtQMotifStyle.h:110: error: non-member function `int styleHint(QStyle::StyleHint, const QWidget*, const QStyleOption&, QStyleHintReturn*)' cannot have `const' method qualifier
sipqtQMotifStyle.h:111: error: non-member function `QPixmap stylePixmap(QStyle::StylePixmap, const QWidget*, const QStyleOption&)' cannot have `const' method qualifier
sipqtQMotifStyle.h:118: error: non-member function `QVariant property(const char*)' cannot have `const' method qualifier
sipqtQMotifStyle.h:125: error: syntax error before `private'
sipqtQMotifStyle.h:127: error: syntax error before `&' token
sipqtQMotifStyle.h:130: error: syntax error before `}' token
In file included from sipqtcmodule.cpp:91:
sipqtQSGIStyle.h:66: error: syntax error before `{' token
sipqtQSGIStyle.h:69: error: destructors must be member functions
sipqtQSGIStyle.h:69: error: virtual outside class declaration
sipqtQSGIStyle.h:92: error: non-member function `QMetaObject* metaObject()' cannot have `const' method qualifier
sipqtQSGIStyle.h:99: error: non-member function `QRect itemRect(QPainter*, const QRect&, int, bool, const QPixmap*, const QString&, int)' cannot have `const' method qualifier
sipqtQSGIStyle.h:100: error: non-member function `void drawItem(QPainter*, const QRect&, int, const QColorGroup&, bool, const QPixmap*, const QString&, int, const QColor*)' cannot have `const' method qualifier
sipqtQSGIStyle.h:101: error: non-member function `void drawPrimitive(QStyle::PrimitiveElement, QPainter*, const QRect&, const QColorGroup&, unsigned int, const QStyleOption&)' cannot have `const' method qualifier
sipqtQSGIStyle.h:102: error: non-member function `void drawControl(QStyle::ControlElement, QPainter*, const QWidget*, const QRect&, const QColorGroup&, unsigned int, const QStyleOption&)' cannot have `const' method qualifier
sipqtQSGIStyle.h:103: error: non-member function `void drawControlMask(QStyle::ControlElement, QPainter*, const QWidget*, const QRect&, const QStyleOption&)' cannot have `const' method qualifier
sipqtQSGIStyle.h:104: error: non-member function `QRect subRect(QStyle::SubRect, const QWidget*)' cannot have `const' method qualifier
sipqtQSGIStyle.h:105: error: non-member function `void drawComplexControl(QStyle::ComplexControl, QPainter*, const QWidget*, const QRect&, const QColorGroup&, unsigned int, unsigned int, unsigned int, const QStyleOption&)' cannot have `const' method qualifier
sipqtQSGIStyle.h:106: error: non-member function `void drawComplexControlMask(QStyle::ComplexControl, QPainter*, const QWidget*, const QRect&, const QStyleOption&)' cannot have `const' method qualifier
sipqtQSGIStyle.h:107: error: non-member function `QRect querySubControlMetrics(QStyle::ComplexControl, const QWidget*, QStyle::SubControl, const QStyleOption&)' cannot have `const' method qualifier
sipqtQSGIStyle.h:108: error: non-member function `QStyle::SubControl querySubControl(QStyle::ComplexControl, const QWidget*, const QPoint&, const QStyleOption&)' cannot have `const' method qualifier
sipqtQSGIStyle.h:109: error: non-member function `int pixelMetric(QStyle::PixelMetric, const QWidget*)' cannot have `const' method qualifier
sipqtQSGIStyle.h:110: error: non-member function `QSize sizeFromContents(QStyle::ContentsType, const QWidget*, const QSize&, const QStyleOption&)' cannot have `const' method qualifier
sipqtQSGIStyle.h:111: error: non-member function `int styleHint(QStyle::StyleHint, const QWidget*, const QStyleOption&, QStyleHintReturn*)' cannot have `const' method qualifier
sipqtQSGIStyle.h:112: error: non-member function `QPixmap stylePixmap(QStyle::StylePixmap, const QWidget*, const QStyleOption&)' cannot have `const' method qualifier
sipqtQSGIStyle.h:119: error: non-member function `QVariant property(const char*)' cannot have `const' method qualifier
sipqtQSGIStyle.h:124: error: redefinition of `sipWrapper*sipPySelf'
sipqtQMotifStyle.h:123: error: `sipWrapper*sipPySelf' previously declared here
sipqtQSGIStyle.h:126: error: syntax error before `private'
sipqtQSGIStyle.h:128: error: syntax error before `&' token
sipqtQSGIStyle.h:130: error: redefinition of `sipMethodCache sipPyMethods[31]'
sipqtQMotifStyle.h:129: error: `sipMethodCache sipPyMethods[31]' previously declared here
sipqtQSGIStyle.h:131: error: syntax error before `}' token
In file included from sipqtcmodule.cpp:111:
sipqtQPlatinumStyle.h:66: error: syntax error before `{' token
sipqtQPlatinumStyle.h:69: error: destructors must be member functions
sipqtQPlatinumStyle.h:69: error: virtual outside class declaration
sipqtQPlatinumStyle.h:93: error: non-member function `QMetaObject* metaObject()' cannot have `const' method qualifier
sipqtQPlatinumStyle.h:100: error: non-member function `QRect itemRect(QPainter*, const QRect&, int, bool, const QPixmap*, const QString&, int)' cannot have `const' method qualifier
sipqtQPlatinumStyle.h:101: error: non-member function `void drawItem(QPainter*, const QRect&, int, const QColorGroup&, bool, const QPixmap*, const QString&, int, const QColor*)' cannot have `const' method qualifier
sipqtQPlatinumStyle.h:102: error: non-member function `void drawPrimitive(QStyle::PrimitiveElement, QPainter*, const QRect&, const QColorGroup&, unsigned int, const QStyleOption&)' cannot have `const' method qualifier
sipqtQPlatinumStyle.h:103: error: non-member function `void drawControl(QStyle::ControlElement, QPainter*, const QWidget*, const QRect&, const QColorGroup&, unsigned int, const QStyleOption&)' cannot have `const' method qualifier
sipqtQPlatinumStyle.h:104: error: non-member function `void drawControlMask(QStyle::ControlElement, QPainter*, const QWidget*, const QRect&, const QStyleOption&)' cannot have `const' method qualifier
sipqtQPlatinumStyle.h:105: error: non-member function `QRect subRect(QStyle::SubRect, const QWidget*)' cannot have `const' method qualifier
sipqtQPlatinumStyle.h:106: error: non-member function `void drawComplexControl(QStyle::ComplexControl, QPainter*, const QWidget*, const QRect&, const QColorGroup&, unsigned int, unsigned int, unsigned int, const QStyleOption&)' cannot have `const' method qualifier
sipqtQPlatinumStyle.h:107: error: non-member function `void drawComplexControlMask(QStyle::ComplexControl, QPainter*, const QWidget*, const QRect&, const QStyleOption&)' cannot have `const' method qualifier
sipqtQPlatinumStyle.h:108: error: non-member function `QRect querySubControlMetrics(QStyle::ComplexControl, const QWidget*, QStyle::SubControl, const QStyleOption&)' cannot have `const' method qualifier
sipqtQPlatinumStyle.h:109: error: non-member function `QStyle::SubControl querySubControl(QStyle::ComplexControl, const QWidget*, const QPoint&, const QStyleOption&)' cannot have `const' method qualifier
sipqtQPlatinumStyle.h:110: error: non-member function `int pixelMetric(QStyle::PixelMetric, const QWidget*)' cannot have `const' method qualifier
sipqtQPlatinumStyle.h:111: error: non-member function `QSize sizeFromContents(QStyle::ContentsType, const QWidget*, const QSize&, const QStyleOption&)' cannot have `const' method qualifier
sipqtQPlatinumStyle.h:112: error: non-member function `int styleHint(QStyle::StyleHint, const QWidget*, const QStyleOption&, QStyleHintReturn*)' cannot have `const' method qualifier
sipqtQPlatinumStyle.h:113: error: non-member function `QPixmap stylePixmap(QStyle::StylePixmap, const QWidget*, const QStyleOption&)' cannot have `const' method qualifier
sipqtQPlatinumStyle.h:120: error: non-member function `QVariant property(const char*)' cannot have `const' method qualifier
sipqtQPlatinumStyle.h:125: error: redefinition of `sipWrapper*sipPySelf'
sipqtQSGIStyle.h:124: error: `sipWrapper*sipPySelf' previously declared here
sipqtQPlatinumStyle.h:127: error: syntax error before `private'
sipqtQPlatinumStyle.h:129: error: syntax error before `&' token
sipqtQPlatinumStyle.h:131: error: redefinition of `sipMethodCache sipPyMethods[31]'
sipqtQSGIStyle.h:130: error: `sipMethodCache sipPyMethods[31]' previously declared here
sipqtQPlatinumStyle.h:132: error: syntax error before `}' token
In file included from sipqtcmodule.cpp:128:
sipqtQMotifPlusStyle.h:66: error: syntax error before `{' token
sipqtQMotifPlusStyle.h:69: error: destructors must be member functions
sipqtQMotifPlusStyle.h:69: error: virtual outside class declaration
sipqtQMotifPlusStyle.h:92: error: non-member function `QMetaObject* metaObject()' cannot have `const' method qualifier
sipqtQMotifPlusStyle.h:99: error: non-member function `QRect itemRect(QPainter*, const QRect&, int, bool, const QPixmap*, const QString&, int)' cannot have `const' method qualifier
sipqtQMotifPlusStyle.h:100: error: non-member function `void drawItem(QPainter*, const QRect&, int, const QColorGroup&, bool, const QPixmap*, const QString&, int, const QColor*)' cannot have `const' method qualifier
sipqtQMotifPlusStyle.h:101: error: non-member function `void drawPrimitive(QStyle::PrimitiveElement, QPainter*, const QRect&, const QColorGroup&, unsigned int, const QStyleOption&)' cannot have `const' method qualifier
sipqtQMotifPlusStyle.h:102: error: non-member function `void drawControl(QStyle::ControlElement, QPainter*, const QWidget*, const QRect&, const QColorGroup&, unsigned int, const QStyleOption&)' cannot have `const' method qualifier
sipqtQMotifPlusStyle.h:103: error: non-member function `void drawControlMask(QStyle::ControlElement, QPainter*, const QWidget*, const QRect&, const QStyleOption&)' cannot have `const' method qualifier
sipqtQMotifPlusStyle.h:104: error: non-member function `QRect subRect(QStyle::SubRect, const QWidget*)' cannot have `const' method qualifier
sipqtQMotifPlusStyle.h:105: error: non-member function `void drawComplexControl(QStyle::ComplexControl, QPainter*, const QWidget*, const QRect&, const QColorGroup&, unsigned int, unsigned int, unsigned int, const QStyleOption&)' cannot have `const' method qualifier
sipqtQMotifPlusStyle.h:106: error: non-member function `void drawComplexControlMask(QStyle::ComplexControl, QPainter*, const QWidget*, const QRect&, const QStyleOption&)' cannot have `const' method qualifier
sipqtQMotifPlusStyle.h:107: error: non-member function `QRect querySubControlMetrics(QStyle::ComplexControl, const QWidget*, QStyle::SubControl, const QStyleOption&)' cannot have `const' method qualifier
sipqtQMotifPlusStyle.h:108: error: non-member function `QStyle::SubControl querySubControl(QStyle::ComplexControl, const QWidget*, const QPoint&, const QStyleOption&)' cannot have `const' method qualifier
sipqtQMotifPlusStyle.h:109: error: non-member function `int pixelMetric(QStyle::PixelMetric, const QWidget*)' cannot have `const' method qualifier
sipqtQMotifPlusStyle.h:110: error: non-member function `QSize sizeFromContents(QStyle::ContentsType, const QWidget*, const QSize&, const QStyleOption&)' cannot have `const' method qualifier
sipqtQMotifPlusStyle.h:111: error: non-member function `int styleHint(QStyle::StyleHint, const QWidget*, const QStyleOption&, QStyleHintReturn*)' cannot have `const' method qualifier
sipqtQMotifPlusStyle.h:112: error: non-member function `QPixmap stylePixmap(QStyle::StylePixmap, const QWidget*, const QStyleOption&)' cannot have `const' method qualifier
sipqtQMotifPlusStyle.h:119: error: non-member function `QVariant property(const char*)' cannot have `const' method qualifier
sipqtQMotifPlusStyle.h:124: error: redefinition of `sipWrapper*sipPySelf'
sipqtQPlatinumStyle.h:125: error: `sipWrapper*sipPySelf' previously declared here
sipqtQMotifPlusStyle.h:126: error: syntax error before `private'
sipqtQMotifPlusStyle.h:128: error: syntax error before `&' token
sipqtQMotifPlusStyle.h:130: error: redefinition of `sipMethodCache sipPyMethods[31]'
sipqtQPlatinumStyle.h:131: error: `sipMethodCache sipPyMethods[31]' previously declared here
sipqtQMotifPlusStyle.h:131: error: syntax error before `}' token
In file included from sipqtcmodule.cpp:251:
sipqtQCDEStyle.h:66: error: syntax error before `{' token
sipqtQCDEStyle.h:69: error: destructors must be member functions
sipqtQCDEStyle.h:69: error: virtual outside class declaration
sipqtQCDEStyle.h:91: error: non-member function `QMetaObject* metaObject()' cannot have `const' method qualifier
sipqtQCDEStyle.h:98: error: non-member function `QRect itemRect(QPainter*, const QRect&, int, bool, const QPixmap*, const QString&, int)' cannot have `const' method qualifier
sipqtQCDEStyle.h:99: error: non-member function `void drawItem(QPainter*, const QRect&, int, const QColorGroup&, bool, const QPixmap*, const QString&, int, const QColor*)' cannot have `const' method qualifier
sipqtQCDEStyle.h:100: error: non-member function `void drawPrimitive(QStyle::PrimitiveElement, QPainter*, const QRect&, const QColorGroup&, unsigned int, const QStyleOption&)' cannot have `const' method qualifier
sipqtQCDEStyle.h:101: error: non-member function `void drawControl(QStyle::ControlElement, QPainter*, const QWidget*, const QRect&, const QColorGroup&, unsigned int, const QStyleOption&)' cannot have `const' method qualifier
sipqtQCDEStyle.h:102: error: non-member function `void drawControlMask(QStyle::ControlElement, QPainter*, const QWidget*, const QRect&, const QStyleOption&)' cannot have `const' method qualifier
sipqtQCDEStyle.h:103: error: non-member function `QRect subRect(QStyle::SubRect, const QWidget*)' cannot have `const' method qualifier
sipqtQCDEStyle.h:104: error: non-member function `void drawComplexControl(QStyle::ComplexControl, QPainter*, const QWidget*, const QRect&, const QColorGroup&, unsigned int, unsigned int, unsigned int, const QStyleOption&)' cannot have `const' method qualifier
sipqtQCDEStyle.h:105: error: non-member function `void drawComplexControlMask(QStyle::ComplexControl, QPainter*, const QWidget*, const QRect&, const QStyleOption&)' cannot have `const' method qualifier
sipqtQCDEStyle.h:106: error: non-member function `QRect querySubControlMetrics(QStyle::ComplexControl, const QWidget*, QStyle::SubControl, const QStyleOption&)' cannot have `const' method qualifier
sipqtQCDEStyle.h:107: error: non-member function `QStyle::SubControl querySubControl(QStyle::ComplexControl, const QWidget*, const QPoint&, const QStyleOption&)' cannot have `const' method qualifier
sipqtQCDEStyle.h:108: error: non-member function `int pixelMetric(QStyle::PixelMetric, const QWidget*)' cannot have `const' method qualifier
sipqtQCDEStyle.h:109: error: non-member function `QSize sizeFromContents(QStyle::ContentsType, const QWidget*, const QSize&, const QStyleOption&)' cannot have `const' method qualifier
sipqtQCDEStyle.h:110: error: non-member function `int styleHint(QStyle::StyleHint, const QWidget*, const QStyleOption&, QStyleHintReturn*)' cannot have `const' method qualifier
sipqtQCDEStyle.h:111: error: non-member function `QPixmap stylePixmap(QStyle::StylePixmap, const QWidget*, const QStyleOption&)' cannot have `const' method qualifier
sipqtQCDEStyle.h:118: error: non-member function `QVariant property(const char*)' cannot have `const' method qualifier
sipqtQCDEStyle.h:123: error: redefinition of `sipWrapper*sipPySelf'
sipqtQMotifPlusStyle.h:124: error: `sipWrapper*sipPySelf' previously declared here
sipqtQCDEStyle.h:125: error: syntax error before `private'
sipqtQCDEStyle.h:127: error: syntax error before `&' token
sipqtQCDEStyle.h:129: error: redefinition of `sipMethodCache sipPyMethods[31]'
sipqtQMotifPlusStyle.h:130: error: `sipMethodCache sipPyMethods[31]' previously declared here
sipqtQCDEStyle.h:130: error: syntax error before `}' token
{standard input}: Assembler messages:
{standard input}:19: Error: symbol `sipPySelf' is already defined
{standard input}:25: Error: symbol `sipPyMethods' is already defined
{standard input}:31: Error: symbol `sipPySelf' is already defined
{standard input}:37: Error: symbol `sipPyMethods' is already defined
{standard input}:43: Error: symbol `sipPySelf' is already defined
{standard input}:49: Error: symbol `sipPyMethods' is already defined
{standard input}:55: Error: symbol `sipPySelf' is already defined
{standard input}:61: Error: symbol `sipPyMethods' is already defined
make[1]: *** [sipqtcmodule.o] Error 1
make[1]: Leaving directory `/dat/pub/src/not-mau/PyQt-x11-gpl-3.13/qt'
make: *** [all] Error 2
[EMAIL PROTECTED] PyQt-x11-gpl-3.13]#



What can I do?

Thanks for any help,

Maurizio

_______________________________________________
PyKDE mailing list    [EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to