[PyQt] Latest PyQt fails compile OSX10.7.5 Qt5.3b conversion from 'long' to 'QFlag' is ambiguous

lloyd konneker bootch at nc.rr.com
Sat Apr 12 14:00:52 BST 2014


Environment

OSX 10.7.5
Qt 5.3beta
sip-4.15.5 and also snapshot
PyQt-gpl-5.2.1 and also snapshot


Compiling PyQt yields:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ 
-c -pipe -O2 -isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk 
-mmacosx-version-min=10.6 -Wall -W -fPIC -DSIP_PROTECTED_IS_PUBLIC 
-Dprotected=public -DQT_NO_DEBUG -DQT_PLUGIN -DQT_CORE_LIB 
-I../../../Qt5.3.0/5.3/clang_64/mkspecs/macx-clang -I. -I. 
-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 
-I../qpy/QtCore 
-I../../../Qt5.3.0/5.3/clang_64/lib/QtCore.framework/Versions/5/Headers 
-I. -F/Users/user/Qt5.3.0/5.3/clang_64/lib -o 
sipQtCoreQByteArrayBase64Options.o sipQtCoreQByteArrayBase64Options.cpp
/Users/user/Downloads/PyQt-gpl-5.2.1/sip/QtCore/qglobal.sip:132:48: 
error: conversion from 'long' to 'QFlag' is ambiguous
     *sipCppPtr = new QByteArray::Base64Options(SIPLong_AsLong(sipPy));
                                                ^~~~~~~~~~~~~~~~~~~~~
/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/sip.h:273:29: 
note: expanded from macro 'SIPLong_AsLong'
#define SIPLong_AsLong      PyInt_AsLong
                             ^
/Users/user/Qt5.3.0/5.3/clang_64/lib/QtCore.framework/Headers/qflags.h:60:29: 
note: candidate constructor
     Q_DECL_CONSTEXPR inline QFlag(int ai) : i(ai) {}
                             ^
/Users/user/Qt5.3.0/5.3/clang_64/lib/QtCore.framework/Headers/qflags.h:61:29: 
note: candidate constructor
     Q_DECL_CONSTEXPR inline QFlag(uint ai) : i(int(ai)) {}
                             ^
/Users/user/Qt5.3.0/5.3/clang_64/lib/QtCore.framework/Headers/qflags.h:62:29: 
note: candidate constructor
     Q_DECL_CONSTEXPR inline QFlag(short ai) : i(int(ai)) {}
                             ^
/Users/user/Qt5.3.0/5.3/clang_64/lib/QtCore.framework/Headers/qflags.h:63:29: 
note: candidate constructor
     Q_DECL_CONSTEXPR inline QFlag(ushort ai) : i(int(uint(ai))) {}
                             ^
/Users/user/Qt5.3.0/5.3/clang_64/lib/QtCore.framework/Headers/qflags.h:108:42: 
note: passing argument to parameter 'f' here
     Q_DECL_CONSTEXPR inline QFlags(QFlag f) : i(f) {}
                                          ^
1 error generated.
make[1]: *** [sipQtCoreQByteArrayBase64Options.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [sub-QtCore-make_first-ordered] Error 2



More information about the PyQt mailing list