[PyKDE] I can't compile PyQt under Linux

caruso bruno b.caruso at laposte.net
Thu Apr 18 12:22:41 BST 2002


Hi!

I have some troubles when I compile PyQt (PyQt-3.2rc1-Qt-2.3.1 or the 
previous version). When compiler enter under pyuic drawing, I have these 
errors:

/bin/sh ../libtool --mode=link g++ -fno-exceptions -O2   -o pyuic 
-L/usr/local/lib/python2.2/site-packages -L/usr/local/qt/lib  uic.o 
widgetdatabase.o domtool.o -lqt -L/usr/X11R6/lib  -lSM -lICE -lX11  -lz
g++ -fno-exceptions -O2 -o pyuic uic.o widgetdatabase.o domtool.o  
-L/usr/local/lib/python2.2/site-packages -L/usr/local/qt/lib -lqt 
-L/usr/X11R6/lib -lSM -lICE -lX11 -lz
uic.o: In function `mkBool(bool)':
uic.o(.text+0x18): undefined reference to `QString::QString(char const*)'
uic.o: In function `mkBool(QString const&)':
uic.o(.text+0x48): undefined reference to `operator==(QString const&, char 
const*)'
uic.o(.text+0x77): undefined reference to `operator==(QString const&, char 
const*)'
uic.o: In function `toBool(QString const&)':
uic.o(.text+0xa5): undefined reference to `operator==(QString const&, char 
const*)'
...
domtool.o(.text+0x30d5): undefined reference to `QString::shared_null'
domtool.o(.text+0x30e3): undefined reference to `QString::shared_null'
domtool.o(.text+0x30f3): undefined reference to `QString::shared_null'
collect2: ld returned 1 exit status
make: *** [pyuic] Erreur 1

I have many undefined reference to QString, QRegExp and QChar. I use Qt 2.3.1 
since a long time under KDE (2.2.2) and there's no any trouble. Qt was 
compiled with GCC 2.96, SIP-3.2rc1 and PyQt-3.2rc1 with GCC 3.04. If I type 
nm /usr/local/qt/lib lib*.so |grep QChar for example, I don't find this 
symbol but something similar like __5QCharc. I could use the RPM package but 
I prefer to undestand what's happend (if possible). Any idea?

Thanks for your answer.

Bruno





More information about the PyQt mailing list