[PyKDE] PyQt4 compilation failure: location of specs?

Giovanni Bajo rasky at develer.com
Mon Apr 3 16:43:22 BST 2006


Hello,

I can't find a way to tell configure.py (in PyQt4, latest snapshot) where my
specs file are located. In my Qt 4.1 installation (RPM by Suse), specs files
are installed into /usr/share/qt/mkspecs. PyQt4's configure detects "qt_dir"
as "/usr" (because qmake is located in /usr/bin/), so it tries to look for
spec files in /usr/mkspecs.

I tried exporting a QMAKESPEC env with an absolute path. This works only in
half: configure.py uses os.join.path and correctly finds and parses the spec
file, but the installed sipconfig.py knows nothing of QMAKESPEC, so when it
comes to generating the Makefile adding an include directory for the
qplatformdefs.h, it doesn't look in the environment and simply uses qt_dir +
"mkspecs" (which ends up being /usr/mkspecs).

I'm missing some pieces of information. How does qmake locate its spec
files? Can't PyQt4 use the same algorithm so to workaround these problems?
-- 
Giovanni Bajo




More information about the PyQt mailing list