[PyKDE] can't build pyqt-2.5 with python-2.2
Alan Eldridge
alane at geeksrus.net
Mon Sep 24 02:20:31 BST 2001
I'm having a bizarre link error at the end of the make. Here's the relevant
system stats:
[alane at wwweasel RPMS]$ rpm -q rpm gcc binutils sip libtool automake autoconf
python
rpm-4.0.3-1.04
gcc-2.96-97.1
binutils-2.11.90.0.8-8
sip-2.5-1
libtool-1.4-8
automake-1.4p5-2
autoconf-2.13-14
python-2.2-0.3a3
[alane at wwweasel RPMS]$
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:
Executing(%install): /bin/sh -e /home/alane/rpm/tmp/rpm-tmp.88587
+ umask 022
+ cd /home/alane/rpm/BUILD
+ cd PyQt-2.5-Qt-NC
+ make DESTDIR=/tmp/PyQt-2.5-root install install-sip install-doc
Making install in qt
make[1]: Entering directory `/home/alane/rpm/BUILD/PyQt-2.5-Qt-NC/qt'
make[2]: Entering directory `/home/alane/rpm/BUILD/PyQt-2.5-Qt-NC/qt'
/bin/sh ../mkinstalldirs /tmp/PyQt-2.5-root/usr/lib/python2.2/site-packages
mkdir /tmp/PyQt-2.5-root
mkdir /tmp/PyQt-2.5-root/usr
mkdir /tmp/PyQt-2.5-root/usr/lib
mkdir /tmp/PyQt-2.5-root/usr/lib/python2.2
mkdir /tmp/PyQt-2.5-root/usr/lib/python2.2/site-packages
/bin/sh ../libtool --mode=install /usr/local/bin/shtool install libqtcmodule.la /tmp/PyQt-2.5-root/usr/lib/python2.2/site-packages/libqtcmodule.la
/usr/local/bin/shtool install .libs/libqtcmodule-2.5.so /tmp/PyQt-2.5-root/usr/lib/python2.2/site-packages/libqtcmodule-2.5.so
(cd /tmp/PyQt-2.5-root/usr/lib/python2.2/site-packages && rm -f libqtcmodule.so && ln -s libqtcmodule-2.5.so libqtcmodule.so)
/usr/local/bin/shtool install .libs/libqtcmodule.lai /tmp/PyQt-2.5-root/usr/lib/python2.2/site-packages/libqtcmodule.la
libtool: install: warning: remember to run `libtool --finish /usr/lib/python2.2/site-packages'
/bin/sh ../mkinstalldirs /tmp/PyQt-2.5-root/usr/lib/python2.2/site-packages
/usr/local/bin/shtool install -m 644 ./qt.py /tmp/PyQt-2.5-root/usr/lib/python2.2/site-packages/qt.py
make install-data-hook
make[3]: Entering directory `/home/alane/rpm/BUILD/PyQt-2.5-Qt-NC/qt'
(cd /tmp; PYTHONPATH=/tmp/PyQt-2.5-root/usr/lib/python2.2/site-packages:/tmp/PyQt-2.5-root/usr/lib/python2.2/site-packages /usr/bin/python -O -c "import qt")
make[3]: Leaving directory `/home/alane/rpm/BUILD/PyQt-2.5-Qt-NC/qt'
make[2]: Leaving directory `/home/alane/rpm/BUILD/PyQt-2.5-Qt-NC/qt'
make[1]: Leaving directory `/home/alane/rpm/BUILD/PyQt-2.5-Qt-NC/qt'
Making install in qtgl
make[1]: Entering directory `/home/alane/rpm/BUILD/PyQt-2.5-Qt-NC/qtgl'
make[2]: Entering directory `/home/alane/rpm/BUILD/PyQt-2.5-Qt-NC/qtgl'
/bin/sh ../mkinstalldirs /tmp/PyQt-2.5-root/usr/lib/python2.2/site-packages
/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
collect2: ld returned 1 exit status
libtool: install: error: relink `libqtglcmodule.la' with the above command before installing it
libtool: install: warning: remember to run `libtool --finish /usr/lib/python2.2/site-packages'
/bin/sh ../mkinstalldirs /tmp/PyQt-2.5-root/usr/lib/python2.2/site-packages
/usr/local/bin/shtool install -m 644 ./qtgl.py /tmp/PyQt-2.5-root/usr/lib/python2.2/site-packages/qtgl.py
make install-data-hook
make[3]: Entering directory `/home/alane/rpm/BUILD/PyQt-2.5-Qt-NC/qtgl'
(cd /tmp; PYTHONPATH=/tmp/PyQt-2.5-root/usr/lib/python2.2/site-packages:/tmp/PyQt-2.5-root/usr/lib/python2.2/site-packages /usr/bin/python -O -c "import qtgl")
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/tmp/PyQt-2.5-root/usr/lib/python2.2/site-packages/qtgl.py", line 6, in ?
import libqtglc
ImportError: No module named libqtglc
make[3]: *** [install-data-hook] Error 1
make[3]: Leaving directory `/home/alane/rpm/BUILD/PyQt-2.5-Qt-NC/qtgl'
make[2]: *** [install-data-am] Error 2
make[2]: Leaving directory `/home/alane/rpm/BUILD/PyQt-2.5-Qt-NC/qtgl'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/alane/rpm/BUILD/PyQt-2.5-Qt-NC/qtgl'
make: *** [install-recursive] Error 1
error: Bad exit status from /home/alane/rpm/tmp/rpm-tmp.88587 (%install)
--
Alan Eldridge
from std_disclaimer import *
More information about the PyQt
mailing list