[PyQt] PyQt-4.11.1: Mac OS X: configure-ng.py can't detect qmake_spec

Jun T. takimoto-j at kba.biglobe.ne.jp
Tue Jul 8 10:14:03 BST 2014


If I try to configure PyQt-4.11.1 on my Mac (10.8.5) by

$ python configure-ng.py --verbose ...

(I believe the options ... here are irrelevant)

then it fails as follows:

Error: Failed to determine the detail of your Qt installation. Try again using
the --verbose flag to see more detail about the problem.
Querying qmake about your Qt installation...
Determining the details of your Qt installation...
/usr/bin/qmake -o qtdetail.mk qtdetail.pro

Obviously, no spec is passed to qmake and qtdetail.app can't be built.
If I configure by

$ python configure-ng.py --spec=macx-g++ ....

then it works fine. PyQt-4.10.4 didn't have this problem.
(Or should I use configure.py instead of configure-ng.py?)

# The followings are my Qt, PyQt and sip:
# Qt4:  qt-opensource-mac-4.8.6-1.dmg (Binary from qt-project.org)
# PyQt: PyQt-mac-gpl-4.11.1.tar.gz (source from riverbankcomputing.co.uk)
# sip-4.16.2

It seems configure-ng.py tries to figure out the correct qmake_spec, but
the output from

$ /usr/bin/qmake -query       # /usr/bin/qmake is from Qt4.8.6

does not contain QMAKE_SPEC, and default_qmake_spec is set to ''
(not 'macx-xcode'). Thus qmake_spec remains as '' also.

The following *may* be a possible patch:

--- configure-ng.py.ORG	2014-07-03 23:11:34.000000000 +0900
+++ configure-ng.py	2014-07-08 17:27:55.000000000 +0900
@@ -800,7 +800,7 @@
 
         # The binary OS/X Qt installer defaults to XCode.  If this is what we
         # might have then use macx-clang (Qt v5) or macx-g++ (Qt v4).
-        if self.qmake_spec == 'macx-xcode':
+        if self.qmake_spec == 'macx-xcode' or self.qmake_spec == '':
             if self.qt_version >= 0x050000:
                 # This will exist (and we can't check anyway).
                 self.qmake_spec = 'macx-clang'







More information about the PyQt mailing list