[PyQt] Problem with compile on Mac OS SL 10.6.7

Phil Thompson phil at riverbankcomputing.com
Fri Apr 1 18:06:23 BST 2011


On Fri, 01 Apr 2011 11:11:56 -0500, "Dr. Louis Wicker"
<Louis.Wicker at noaa.gov> wrote:
> All:
> 
> with both the released and the snapshot version
> (PyQt-mac-gpl-snapshot-4.8.4-8641ecc135b3), I get this error when
> compiling....
> 
> make[2]: Nothing to be done for `first'.
> make[2]: Nothing to be done for `first'.
> make[2]: Nothing to be done for `first'.
> make[2]: Nothing to be done for `first'.
> g++ -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -DSIP_PROTECTED_IS_PUBLIC
> -Dprotected=public -DQT_NO_DEBUG -DQT_CORE_LIB -I.
>
-I/Users/wicker/Downloads/PyQt-mac-gpl-snapshot-4.8.4-8641ecc135b3/qpy/QtCore
> -I/Library/Frameworks/Python.framework/Versions/7.0/include/python2.7
> -I/mkspecs/macx-g++ -I/Library/Frameworks/QtCore.framework/Headers
> -I/usr/include
>
-F/Users/wicker/Downloads/PyQt-mac-gpl-snapshot-4.8.4-8641ecc135b3/qpy/QtCore
> -F/Library/Frameworks -o sipQtCoreQLocale.o sipQtCoreQLocale.cpp
>
/Users/wicker/Downloads/PyQt-mac-gpl-snapshot-4.8.4-8641ecc135b3/QtCore/sipQtCoreQLocale.cpp:
> In function 'PyObject* meth_QLocale_textDirection(PyObject*,
PyObject*)':
>
/Users/wicker/Downloads/PyQt-mac-gpl-snapshot-4.8.4-8641ecc135b3/QtCore/sipQtCoreQLocale.cpp:1651:
> error: 'class QLocale' has no member named 'textDirection'
>
/Users/wicker/Downloads/PyQt-mac-gpl-snapshot-4.8.4-8641ecc135b3/QtCore/sipQtCoreQLocale.cpp:
> At global scope:
>
/Users/wicker/Downloads/PyQt-mac-gpl-snapshot-4.8.4-8641ecc135b3/QtCore/sipQtCoreQLocale.cpp:2134:
> error: 'LatinAmericaAndTheCaribbean' is not a member of 'QLocale'
> make[1]: *** [sipQtCoreQLocale.o] Error 1
> make: *** [all] Error 2
> 
> Any ideas?  I am using EPD 7.0.2 for my python environment, and Xcode
> environment 3.2.6, gcc 4.2.1

That suggests the version of Qt that configure.py found (ie. v4.7.0 or
later) is not the same version that the compiler found.

Phil


More information about the PyQt mailing list