[PyKDE] PyQT-3.0 fails to build when both qt 2.x and 3.x are installed

Karl Trygve Kalleberg karltk at prosalg.no
Tue Feb 12 00:04:54 GMT 2002


I configured PyQt thus:

   ./configure --prefix=/usr \
                --infodir=/usr/share/info \
                --mandir=/usr/share/man \
                --with-doc-install=/usr/share/doc \
                --with-qt-dir=/usr/qt/3 \
                --with-qt-includes=/usr/qt/3/include \
                --with-qt-libraries=/usr/qt/3/lib \
                --with-x || die

and did make all, which resulted in:

make[3]: Entering directory `/var/tmp/portage/PyQt-3.0/work/PyQt-3.0/qt'
(cd /tmp;
PYTHONPATH=/var/tmp/portage/PyQt-3.0/image//usr/lib/python2.0/site-packag
es:/var/tmp/portage/PyQt-3.0/image//usr/lib/python2.0/site-packages
/usr/bin/python -O -c "import qt") Traceback (most recent call last):
  File "<string>", line 1, in ?
  File
"/var/tmp/portage/PyQt-3.0/image/usr/lib/python2.0/site-packages/qt.py",
line 44, in ?    import libqtc
ImportError: libqt-mt.so.2: cannot open shared object file: No such file
or directory make[3]: *** [install-data-hook] Error 1


As far as I can figure, it should look for libqt-mt.so.3, which lives in
/usr/qt/3/lib, and not libqt-mt.so.2.

I also tried setting LDFLAGS="-L/usr/qt/3/lib" and
CXXFLAGS="-L/usr/qt/3/lib" to no avail.

Any ideas ?


Kind regards,

Karl T





More information about the PyQt mailing list