[PyQt] Trying to upgrade Qt4 in Linux

Phil Thompson phil at riverbankcomputing.com
Tue Oct 1 09:04:12 BST 2013


On Mon, 30 Sep 2013 16:28:48 -0700, David Cortesi <davecortesi at gmail.com>
wrote:
> In a Linux system my PyQt4 app  fails because it relies on a feature
that
> dates to Qt 4.7. This Linux system has 4.6 installed. Also the PyQt4 was
at
> 4.6.x. So I did the following:
> 
> Downloaded the Linux source of SIP, configure, make, make-install
> 
> Downloaded the Linux source of PyQt4, configure, make, make-install
> 
> Then downloaded the latest stable Qt4 from qt-project and did configure,
> make (four bloody hours!), make install.
> 
> Invoke Python, check PYQT_VERSION_STR, it is 4.10.3 but alas,
> QT_VERSION_STR is 4.6.2 still.
> 
> Went back to PyQt4 folder, did make clean; python configure-ng.py, and
note
> that it reports, "Qt v4.6.2 (Open Source) is being used."
> 
> How do I persuade PyQt4 to configure to use the newer Qt I just
installed?
> I don't see anything relevant in configure-ng --help.
> 
> I observe that  /usr/include/qt4/* exists, presumably this is the old
one;
> but the Qt4 make-install put a lot of stuff in
> /usr/local/TrollTech/Qt4.8.5/*
> 
> thanks,
> Dave Cortesi

Use the --qmake flag to specify the new qmake, probably
/usr/local/TrollTech/Qt4.8.5/bin/qmake

Phil


More information about the PyQt mailing list