From: Patrick S. <pat...@gm...> - 2006-01-12 20:45:54
|
It seems that the windowing system is not being set correctly by PyQt4. (i'= m using 20060103). The C++ macro Q_MS_MAC should be set to get the QSysInfo::MacintoshVersion, and other reported missing members. The error is as follows: patrickkidd:~/PyQt4-gpl-snapshot-20060103 patrick$ export QMAKESPEC=3D/usr/local/Trolltech/Qt-4.1.0/mkspecs/darwin-g++ patrickkidd:~/PyQt4-gpl-snapshot-20060103 patrick$ python configure.py -c -= q /usr/local/Trolltech/Qt-4.1.0 This is the GPL version of PyQt snapshot-20060103 (licensed under the GNU General Public License) for Python 2.4.2 on darwin. Type 'L' to view the license. Type 'yes' to accept the terms of the license. Type 'no' to decline the terms of the license. Do you accept the terms of the license? yes Checking to see if the QtGui module should be built... Checking to see if the QtAssistant module should be built... Checking to see if the QtNetwork module should be built... Checking to see if the QtOpenGL module should be built... Checking to see if the QtSql module should be built... Checking to see if the QtSvg module should be built... Checking to see if the QtXml module should be built... Qt v4.1.0 free edition is being used. SIP snapshot-20060103 is being used. The Qt header files are in /usr/local/Trolltech/Qt-4.1.0/include. The QtCore Qt library is in /usr/local/Trolltech/Qt-4.1.0/lib. These PyQt modules will be built: QtCore. The PyQt modules will be installed in /sw/lib/python2.4/site-packages. The PyQt .sip files will be installed in /sw/share/sip. pyuic4, pyrcc4 and pylupdate4 will be installed in /sw/bin. Generating the C++ source for the QtCore module... Creating the Makefile for the QtCore module... Creating top level Makefile... Creating pyuic4 wrapper... Creating pyuic4 Makefile... Creating pylupdate4 Makefile... Creating pyrcc4 Makefile... Creating pyqtconfig.py... patrickkidd:~/PyQt4-gpl-snapshot-20060103 patrick$ make c++ -c -pipe -fPIC -O2 -Wall -W -D__USE_WS_X11__ -DQT_NO_DEBUG -DQT_CORE_LI= B -I. -I/usr/local/include -I/sw/include/python2.4 -I/usr/local/Trolltech/Qt- 4.1.0/include -I/usr/local/Trolltech/Qt-4.1.0/include/QtCore -I/usr/local/Trolltech/Qt-4.1.0/mkspecs/default -I/usr/X11R6/include -o sipQtCorepart0.o sipQtCorepart0.cpp /usr/local/Trolltech/Qt-4.1.0/include/QtCore/qglobal.h: In function `int qMacVersion()': /usr/local/Trolltech/Qt-4.1.0/include/QtCore/qglobal.h:1026: error: 'MacintoshVersion' is not a member of 'QSysInfo' sipQtCorepart0.cpp: In function `PyObject* meth_QThread_currentThreadId(PyObject*, PyObject*)': sipQtCorepart0.cpp:14356: error: invalid conversion from 'Qt::HANDLE' to 'void*' sipQtCorepart0.cpp: At global scope: sipQtCorepart0.cpp:91241: error: 'MV_10_0' is not a member of 'QSysInfo' sipQtCorepart0.cpp:91242: error: 'MV_10_1' is not a member of 'QSysInfo' sipQtCorepart0.cpp:91243: error: 'MV_10_2' is not a member of 'QSysInfo' sipQtCorepart0.cpp:91244: error: 'MV_10_3' is not a member of 'QSysInfo' sipQtCorepart0.cpp:91245: error: 'MV_10_4' is not a member of 'QSysInfo' sipQtCorepart0.cpp:91246: error: 'MV_9' is not a member of 'QSysInfo' sipQtCorepart0.cpp:91247: error: 'MV_CHEETAH' is not a member of 'QSysInfo' sipQtCorepart0.cpp:91248: error: 'MV_JAGUAR' is not a member of 'QSysInfo' sipQtCorepart0.cpp:91249: error: 'MV_PANTHER' is not a member of 'QSysInfo' sipQtCorepart0.cpp:91250: error: 'MV_PUMA' is not a member of 'QSysInfo' sipQtCorepart0.cpp:91251: error: 'MV_TIGER' is not a member of 'QSysInfo' sipQtCorepart0.cpp:91252: error: 'MV_Unknown' is not a member of 'QSysInfo' sipQtCorepart0.cpp:91259: error: 'MacintoshVersion' is not a member of 'QSysInfo' make[1]: *** [sipQtCorepart0.o] Error 1 make: *** [all] Error 2 patrickkidd:~/PyQt4-gpl-snapshot-20060103 patrick$ -- Patrick Kidd Stinson http://pkaudio.sourceforge.net/ http://pksampler.sourceforge.net/ |