[PyKDE] Still fighting to have PyQt working
Boudewijn Rempt
boud at valdyas.org
Sun Nov 18 11:53:35 GMT 2001
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Saturday 17 November 2001 19:23, Luca Fini wrote:
> I've installed PyQt-2.5 but I'm not able yet to get it working.
>
I admire your perseverance! Let's have another try. If you previously
used the standard rpm's from RedHat, you might want to experiment with
source now.
Get qt-2.3.1 (2.3.2 is flawed), configure and make it, and link the location
of the source to /usr/local/qt2, add /usr/local/qt2/lib to the
LD_LIBRARY_PATH or /etc/ld.so.conf.
Get Python (the latest beta really is good), make and install it in
/usr/local/.
You already have sip and PyQt, but make clean them, and then first configure
sip with your custom qt in /usr/local/qt and your custom python in
/usr/local/bin. There are ./configure switches for those:
./configure --with-qt-dir=/usr/local/qt3 \
--with-qt-includes=/usr/local/qt3/include \
--with-qt-mocdir=/usr/local/qt3/bin \
--with-qt-libraries=/usr/local/qt3/lib \
--with-python=/usr/local/bin/python
If sip has been installed (to /usr/local of course), do the same with
PyQt.
After giving ldconfig (as root, if you've added /usr/local/qt2/lib to
ld.so.confg), you should be able to try the examples:
/usr/local/bin/python examples/application.py
If you try it this way, you should be totally independent from the Linux
distro - except perhaps for the compiler (you're not using gcc 2.96, are
you?). This doesn't help in finding out _why_ the install doesn't work
with standard Redhat rpm's, but it should give you a usable system.
If all else fails - SuSE includes binaries of PyQt and sip in its
distribution. Perhaps those are installable on Redhat, too?
- --
Boudewijn Rempt | http://www.valdyas.org
public key at: certserver.pgp.com or pki.surfnet.nl
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE795LZN8fj6DnPxOgRAvhfAJ91L7UNG+f4PmdpUVXuT+ub4w+SogCcDg23
WqMisFlJ+9zn2Bxjj2FyQ7A=
=uj4l
-----END PGP SIGNATURE-----
More information about the PyQt
mailing list