[PyKDE] PyQt on Mandrake 10.1 fails to compile after README patch

Parzival Herzog parzp at shaw.ca
Fri Jan 14 17:20:50 GMT 2005


I am upgrading from Mandrake 9.2 to Mandrake 10.1, and consequently have to 
rebuild and install everything having to do with PyQT, PyKDE, eric, sip etc. 
I have had a number of problems in this process, and I do not know how to 
resolve the following problem:

The newly built and installed PyQt would not work, giving

Error: /usr/lib/python2.3/site-packages/qt.so: undefined symbol: 
_ZNK14QPlatinumStyle9classNameEv

I edited qconfig.h so that it starts:

/* Everything */
#define	QT_NO_STYLE_CDE
#define	QT_NO_STYLE_MOTIF
#define	QT_NO_STYLE_SGI
#define	QT_NO_STYLE_WINDOWS

/* License information */
...

Then attempting to re-build PyQt re-builds the C++ sources, but fails on
make. The problem seems to be related to the change made to qconfig.h

What can be done to fix this?


[parz at lobsang PyQt-x11-gpl-3.13]$ make
make[1]: Entering directory `/home/parz/x-src/PyQt-x11-gpl-3.13/qt'
g++ -c -pipe -fPIC -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=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
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
In file included from sipqtcmodule.cpp:107:
sipqtQWindowsStyle.h:66: error: expected class-name before '{' token
In file included from sipqtcmodule.cpp:108:
sipqtQPlatinumStyle.h:66: error: expected class-name before '{' token
In file included from sipqtcmodule.cpp:125:
sipqtQMotifStyle.h:66: error: expected class-name before '{' token
In file included from sipqtcmodule.cpp:126:
sipqtQMotifPlusStyle.h:66: error: expected class-name before '{' token
make[1]: *** [sipqtcmodule.o] Error 1
make[1]: Leaving directory `/home/parz/x-src/PyQt-x11-gpl-3.13/qt'
make: *** [all] Error 2
[parz at lobsang PyQt-x11-gpl-3.13]$

-- 
Parzival Herzog




More information about the PyQt mailing list