[PyKDE] Re: PyQt 4.1 on x86_64

Rex Dieter rdieter at math.unl.edu
Wed Nov 8 13:33:53 GMT 2006

Rex Dieter wrote:

> Phil Thompson wrote:

>>> I'm having trouble getting PyQt-4.1 to build on an rhel4/x86_64 box.  No
>>> matter what I do, after running configure.py, pyqtconfig.py contains:
>>> 'LIBDIR_X11':               '/usr/X11R6/lib',
>>> instead of
>>> 'LIBDIR_X11':               '/usr/X11R6/lib64',
>>> (which is what is in sipconfig.py).
>>> Any tips/tricks?  Where is PyQt-4.x getting it's value of LIBDIR_X11
>>> from (other than sipconfig.py)?
>>> For the record, PyQt-3.17 builds fine and its pyqtconfig.py ends up with
>>>     'LIBDIR_X11':               '/usr/X11R6/lib64',
>> PyQt gets everything from your Qt installation - not sipconfig.py.
> So, qmake.conf?  Where mine has:
> QMAKE_LIBDIR_X11      = /usr/X11R6/lib64

Methinks I've found a bug or 2 (whether it is PyQt4 or qt4 dunno):

1.  QT_INSTALL_DATA, mkspecs location.
qt4 has been configured so that
qmake -query QT_INSTALL_DATA
So, mkspecs lives in

But on after running configure.py, PyQt4's Makefiles contain references to
non-existant -I/usr/lib64/qt4/mkspecs/linux-g++-64

/usr/share/qt4/mkspecs/common/linux.conf contains:
QMAKE_LIBDIR_X11      = /usr/X11R6/lib
/usr/share/qt4/mkspecs/linux-g++-64/qmake.conf contains:
QMAKE_LIBDIR_X11      = /usr/X11R6/lib64
Isn't the latter LIBDIR_X11 definition supposed to override the value in

Now, if I manually change /usr/share/qt4/mkspecs/common/linux.conf to
contain instead:
QMAKE_LIBDIR_X11      = /usr/X11R6/lib64
then PyQt-4.1 uses *that* proper value.  ???

-- Rex

More information about the PyQt mailing list