[PyQt] Error in PyQt 4.8.5 Build on OS X 10.7.1

EDoxtator doc6502 at yahoo.com
Wed Sep 7 20:42:23 BST 2011


Hi All

I’m encountering a build issue for PyQt 4.8.5  (Qt 4.74) on OS X 10.7.1 that’s got me a bit jiggered.  I’m a newbie to the list, and I hope you’ll forgive me for jumping right in...

If I do the following:

1. Run configure.py

python configure.py -q /Users/edoxtator/QtSDK/Simulator/qt/gcc/bin/qmake -d /Library/Frameworks/Python.framework/Versions/Current/lib/python2.7/site-packages -g --use-arch x86_64


I get the following:
Checking to see if the QtGui module should be built...
Checking to see if the QtHelp module should be built...
Checking to see if the QtMultimedia module should be built...
Checking to see if the QtNetwork module should be built...
Checking to see if the QtDeclarative module should be built...
Checking to see if the QtOpenGL module should be built...
Checking to see if the QtScript module should be built...
Checking to see if the QtScriptTools 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 QtTest module should be built...
Checking to see if the QtWebKit module should be built...
Checking to see if the QtXml module should be built...
Checking to see if the QtXmlPatterns module should be built...
Checking to see if the phonon module should be built...
Checking to see if the QtAssistant module should be built...
QtDesigner module disabled with static Qt libraries.
Qt v4.7.4 free edition is being used.
Qt is built as a framework.
SIP 4.12.4 is being used.
The Qt header files are in /Users/edoxtator/QtSDK/Simulator/Qt/gcc/include.
The static Qt libraries are in /Users/edoxtator/QtSDK/Simulator/Qt/gcc/lib.
The Qt binaries are in /Users/edoxtator/QtSDK/Simulator/Qt/gcc/bin.
The Qt mkspecs directory is in /Users/edoxtator/QtSDK/Simulator/Qt/gcc/.
These PyQt modules will be built: QtCore, QtGui, QtMultimedia, QtNetwork,
QtDeclarative, QtOpenGL, QtScript, QtScriptTools, QtSql, QtSvg, QtTest,
QtWebKit, QtXml, QtXmlPatterns, phonon.
The PyQt Python package will be installed in
/Library/Frameworks/Python.framework/Versions/Current/lib/python2.7/site-packages.
PyQt is being built with generated docstrings.
PyQt is being built with 'protected' redefined as 'public'.
The Designer plugin will be installed in
/Users/edoxtator/QtSDK/Simulator/Qt/gcc/plugins/designer.
The PyQt .sip files will be installed in
/Library/Frameworks/Python.framework/Versions/2.7/share/sip/PyQt4.
pyuic4, pyrcc4 and pylupdate4 will be installed in
/Library/Frameworks/Python.framework/Versions/2.7/bin.
Generating the C++ source for the QtCore module...
Creating the Makefile for the QtCore module...
Generating the C++ source for the QtDeclarative module...
Creating the Makefile for the QtDeclarative module...
Generating the C++ source for the QtGui module...
Creating the Makefile for the QtGui module...
Generating the C++ source for the QtMultimedia module...
Creating the Makefile for the QtMultimedia module...
Generating the C++ source for the QtNetwork module...
Creating the Makefile for the QtNetwork module...
Determining the OpenGL data types...
Generating the C++ source for the QtOpenGL module...
Creating the Makefile for the QtOpenGL module...
Generating the C++ source for the QtScript module...
Creating the Makefile for the QtScript module...
Generating the C++ source for the QtScriptTools module...
Creating the Makefile for the QtScriptTools module...
Generating the C++ source for the QtSql module...
Creating the Makefile for the QtSql module...
Generating the C++ source for the QtSvg module...
Creating the Makefile for the QtSvg module...
Generating the C++ source for the QtTest module...
Creating the Makefile for the QtTest module...
Generating the C++ source for the QtWebKit module...
Creating the Makefile for the QtWebKit module...
Generating the C++ source for the QtXml module...
Creating the Makefile for the QtXml module...
Generating the C++ source for the QtXmlPatterns module...
Creating the Makefile for the QtXmlPatterns module...
Generating the C++ source for the phonon module...
Creating the Makefile for the phonon module...
Generating the C++ source for the Qt module...
Creating the Makefile for the Qt module...
Generating the C++ source for the _qt module...
Creating the Makefile for the _qt module...
Creating QScintilla API file...
Creating top level Makefile...
Creating QPy support library for QtDeclarative Makefile...
Creating QPy support library for QtCore Makefile...
Creating QPy support library for QtGui Makefile...
Creating QPy support library for QtOpenGL Makefile...
Creating QPy support libraries Makefile...
Creating pyuic4 wrapper...
Creating pyuic4 Makefile...
Creating pylupdate4 Makefile...
Creating pyrcc4 Makefile...
Creating pyqtconfig.py...

Which seems to be OK.  I guess.

2. Next, I run:

make

Which gives me
<lots of build statements, until...>

g++ -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_PHONON_LIB -DQT_XMLPATTERNS_LIB -DQT_XML_LIB -DQT_WEBKIT_LIB -DQT_TEST_LIB -DQT_SQL_LIB -DQT_SCRIPTTOOLS_LIB -DQT_SCRIPT_LIB -DQT_OPENGL_LIB -DQT_DECLARATIVE_LIB -DQT_NETWORK_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/Users/edoxtator/Downloads/PyQt-mac-gpl-4.8.5/qpy/QtCore -I/Users/edoxtator/Downloads/PyQt-mac-gpl-4.8.5/qpy/QtDeclarative -I/Users/edoxtator/Downloads/PyQt-mac-gpl-4.8.5/qpy/QtGui -I/Users/edoxtator/Downloads/PyQt-mac-gpl-4.8.5/qpy/QtOpenGL -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/Users/edoxtator/QtSDK/Simulator/Qt/gcc/mkspecs/default -I/Users/edoxtator/QtSDK/Simulator/Qt/gcc/lib/phonon.framework/Headers -I/Users/edoxtator/QtSDK/Simulator/Qt/gcc/lib/QtXmlPatterns.framework/Headers -I/Users/edoxtator/QtSDK/Simulator/Qt/gcc/lib/QtXml.framework/Headers
 -I/Users/edoxtator/QtSDK/Simulator/Qt/gcc/lib/QtWebKit.framework/Headers -I/Users/edoxtator/QtSDK/Simulator/Qt/gcc/lib/QtTest.framework/Headers -I/Users/edoxtator/QtSDK/Simulator/Qt/gcc/lib/QtSvg.framework/Headers -I/Users/edoxtator/QtSDK/Simulator/Qt/gcc/lib/QtSql.framework/Headers -I/Users/edoxtator/QtSDK/Simulator/Qt/gcc/lib/QtScriptTools.framework/Headers -I/Users/edoxtator/QtSDK/Simulator/Qt/gcc/lib/QtScript.framework/Headers -I/Users/edoxtator/QtSDK/Simulator/Qt/gcc/lib/QtOpenGL.framework/Headers -I/Users/edoxtator/QtSDK/Simulator/Qt/gcc/lib/QtDeclarative.framework/Headers -I/Users/edoxtator/QtSDK/Simulator/Qt/gcc/lib/QtNetwork.framework/Headers -I/Users/edoxtator/QtSDK/Simulator/Qt/gcc/lib/QtMultimedia.framework/Headers -I/Users/edoxtator/QtSDK/Simulator/Qt/gcc/lib/QtGui.framework/Headers -I/Users/edoxtator/QtSDK/Simulator/Qt/gcc/lib/QtCore.framework/Headers -I/Users/edoxtator/QtSDK/Simulator/Qt/gcc/include
 -F/Users/edoxtator/Downloads/PyQt-mac-gpl-4.8.5/qpy/QtCore -F/Users/edoxtator/Downloads/PyQt-mac-gpl-4.8.5/qpy/QtDeclarative -F/Users/edoxtator/Downloads/PyQt-mac-gpl-4.8.5/qpy/QtGui -F/Users/edoxtator/Downloads/PyQt-mac-gpl-4.8.5/qpy/QtOpenGL -F/Users/edoxtator/QtSDK/Simulator/Qt/gcc/lib -o sipQtGuicmodule.o sipQtGuicmodule.cpp
/Users/edoxtator/Downloads/PyQt-mac-gpl-4.8.5/_qt/sipQtGuicmodule.cpp: In function ‘PyObject* func_qt_mac_set_press_and_hold_context(PyObject*, PyObject*)’:
/Users/edoxtator/Downloads/PyQt-mac-gpl-4.8.5/_qt/sipQtGuicmodule.cpp:6886: error: ‘qt_mac_set_press_and_hold_context’ was not declared in this scope
/Users/edoxtator/Downloads/PyQt-mac-gpl-4.8.5/_qt/sipQtGuicmodule.cpp: In function ‘PyObject* func_qt_mac_set_native_menubar(PyObject*, PyObject*)’:
/Users/edoxtator/Downloads/PyQt-mac-gpl-4.8.5/_qt/sipQtGuicmodule.cpp:6914: error: ‘qt_mac_set_native_menubar’ was not declared in this scope
/Users/edoxtator/Downloads/PyQt-mac-gpl-4.8.5/_qt/sipQtGuicmodule.cpp: In function ‘PyObject* func_qt_mac_set_menubar_merge(PyObject*, PyObject*)’:
/Users/edoxtator/Downloads/PyQt-mac-gpl-4.8.5/_qt/sipQtGuicmodule.cpp:6942: error: ‘qt_mac_set_menubar_merge’ was not declared in this scope
/Users/edoxtator/Downloads/PyQt-mac-gpl-4.8.5/_qt/sipQtGuicmodule.cpp: In function ‘PyObject* func_qt_mac_set_menubar_icons(PyObject*, PyObject*)’:
/Users/edoxtator/Downloads/PyQt-mac-gpl-4.8.5/_qt/sipQtGuicmodule.cpp:6970: error: ‘qt_mac_set_menubar_icons’ was not declared in this scope
/Users/edoxtator/Downloads/PyQt-mac-gpl-4.8.5/_qt/sipQtGuicmodule.cpp: In function ‘PyObject* func_qt_mac_set_dock_menu(PyObject*, PyObject*)’:
/Users/edoxtator/Downloads/PyQt-mac-gpl-4.8.5/_qt/sipQtGuicmodule.cpp:6999: error: ‘qt_mac_set_dock_menu’ was not declared in this scope
/Users/edoxtator/Downloads/PyQt-mac-gpl-4.8.5/_qt/sipQtGuicmodule.cpp: In function ‘PyObject* func_qt_mac_secure_keyboard(PyObject*, PyObject*)’:
/Users/edoxtator/Downloads/PyQt-mac-gpl-4.8.5/_qt/sipQtGuicmodule.cpp:7029: error: ‘qt_mac_secure_keyboard’ was not declared in this scope
/Users/edoxtator/Downloads/PyQt-mac-gpl-4.8.5/_qt/sipQtGuicmodule.cpp: In function ‘PyObject* func_qt_set_sequence_auto_mnemonic(PyObject*, PyObject*)’:
/Users/edoxtator/Downloads/PyQt-mac-gpl-4.8.5/_qt/sipQtGuicmodule.cpp:7057: error: ‘qt_set_sequence_auto_mnemonic’ was not declared in this scope
make[1]: *** [sipQtGuicmodule.o] Error 1
make: *** [all] Error 2

I’m buffaloed.  Any thoughts here?

Thanks

-Ed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110907/5d1e1703/attachment.html>


More information about the PyQt mailing list