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

Phil Thompson phil at river-bank.demon.co.uk
Thu Feb 14 11:40:05 GMT 2002


Karl Trygve Kalleberg wrote:
> 
> 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 ?

Did you re-build sip as well for Qt3?

	./configure --with-qt-dir=/usr/qt/3

...should be all you need.

Phil




More information about the PyQt mailing list