[PyKDE] can't build pyqt-2.5 with python-2.2

Bruce Sass bsass at freenet.edmonton.ab.ca
Mon Sep 24 19:38:51 BST 2001


On Sun, 23 Sep 2001, Alan Eldridge wrote:

> I'm having a bizarre link error at the end of the make. Here's the relevant
> system stats:
<...>
> I'm using the PyQt.spec supplied with PyQt-2.5-Qt-NC modulo
> 's/python2.1/python2.2/g'.
>
> And here's the end of the make, where the link goes wrong:
<...>
> /bin/sh ../libtool  --mode=install /usr/local/bin/shtool install libqtglcmodule.la /tmp/PyQt-2.5-root/usr/lib/python2.2/site-packages/libqtglcmodule.la
> libtool: install: warning: relinking `libqtglcmodule.la'
> cd /home/alane/rpm/BUILD/PyQt-2.5-Qt-NC/qtgl; /bin/sh ../libtool --mode=relink c++ -fno-exceptions -O2 -o libqtglcmodule.la -rpath /usr/lib/python2.2/site-packages -release 2.5 qtglcmodule.lo sipqtglQGLWidget.lo sipqtglQGLContext.lo sipqtglQGLFormat.lo sipqtglQGL.lo -L../qt -lqtcmodule -L/usr/lib/qt-2.3.1/lib -lsip -lqt -L/usr/X11R6/lib -lSM -lICE -lX11
> gcc -shared  qtglcmodule.lo sipqtglQGLWidget.lo sipqtglQGLContext.lo sipqtglQGLFormat.lo sipqtglQGL.lo  -Wl,--rpath -Wl,/usr/lib/python2.2/site-packages  -L/usr/X11R6/lib -L/usr/lib -L/usr/lib/qt-2.3.1/lib -L/home/alane/rpm/BUILD/PyQt-2.5-Qt-NC/qt -L/usr/lib/python2.2/site-packages -lqtcmodule -lsip -lqt -lSM -lICE -lX11   -Wl,-soname -Wl,libqtglcmodule-2.5.so -o .libs/libqtglcmodule-2.5.so
> /usr/bin/ld: cannot find -lqtcmodule
<...>

Ok.  You are going to have to dig a little deeper into the package you
got the .spec from, to see how to tell PyQt that you have the Qt's GL
stuff (assuming you have the proper devel packages installed, if not
then do that first and try again).

I suspect if you look for "qtgl module" in PyQt's config.log you will
see a message about it not being built.


- Bruce





More information about the PyQt mailing list