Hello list, I'm having difficulty building PyQt4 on my system. python configure.py exits with the complaint "Error: Unable to create the C++ code." The full output of python configure.py --verbose is pasted at the end of this email, but first, here's what I've done so far:
0. I'm running Mac 10.6.3, booting in 64-bit mode by default, with a python.org 64-bit python (2.6.1, which is somewhat old, I know). 1. I installed Qt 4.6.3 from the Cocoa .dmg at http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x/ . I thought this did a 64-bit install, but I might be wrong. (At any rate I'm _not_ getting the familiar "You are building a 64-bit application, but using a 32-bit version of Qt" error.) 2. I built sip 4.10.2 by the usual python configure.py / make / sudo make install. The docs at http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#configuring-sip-and-pyqt-for-macos-10-6-snow-leopard say this should build 64-bit by default. 3. (Possibly irrelevant) I built QScintilla 2.4.3 by qmake -spec macx-g++ / make / sudo make install. 4. I attempted to build PyQt 4.7.3, but python configure.py fails (see log at the end of this email). I found this thread describing a similar problem, but didn't see anything indicating that the poster had resolved the issue: http://www.riverbankcomputing.com/pipermail/pyqt/2010-April/026333.html Any ideas about what to try next? Thanks, Robin Arcane:PyQt-mac-gpl-4.7.3 rmbaur$ python configure.py --verbose Determining the layout of your Qt installation... /usr/bin/qmake -spec macx-g++ -o qtdirs.mk qtdirs.pro make -f qtdirs.mk g++ -c -pipe -g -gdwarf-2 -Wall -W -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/usr/include -I. -F/Library/Frameworks -o qtdirs.o qtdirs.cpp g++ -headerpad_max_install_names -o qtdirs.app/Contents/MacOS/qtdirs qtdirs.o -F/Library/Frameworks -L/Library/Frameworks -framework QtCore qtdirs.app/Contents/MacOS/qtdirs This is the GPL version of PyQt 4.7.3 (licensed under the GNU General Public License) for Python 2.6.1 on darwin. Type '2' to view the GPL v2 license. Type '3' to view the GPL v3 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... g++ -DQT_NO_DEBUG -DQT_GUI_LIB -I. -I/mkspecs/macx-g++ -I/Library/Frameworks/QtGui.framework/Headers -I/usr/include -pipe -O2 -w cfgtest_QtGui.cpp -o cfgtest_QtGui -F/Library/Frameworks -L/Library/Frameworks -headerpad_max_install_names -framework QtGui -framework QtCore Checking to see if the QtHelp module should be built... g++ -DQT_NO_DEBUG -I. -I/mkspecs/macx-g++ -I/Library/Frameworks/QtHelp.framework/Headers -I/usr/include -pipe -O2 -w cfgtest_QtHelp.cpp -o cfgtest_QtHelp -F/Library/Frameworks -L/Library/Frameworks -headerpad_max_install_names -framework QtHelp -framework QtSql -framework QtXml -framework QtGui -framework QtNetwork -framework QtCore Checking to see if the QtMultimedia module should be built... g++ -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -I. -I/mkspecs/macx-g++ -I/Library/Frameworks/QtMultimedia.framework/Headers -I/usr/include -pipe -O2 -w cfgtest_QtMultimedia.cpp -o cfgtest_QtMultimedia -F/Library/Frameworks -L/Library/Frameworks -headerpad_max_install_names -framework QtMultimedia -framework ApplicationServices -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework QtGui -framework QtCore Checking to see if the QtNetwork module should be built... g++ -DQT_NO_DEBUG -DQT_NETWORK_LIB -I. -I/mkspecs/macx-g++ -I/Library/Frameworks/QtNetwork.framework/Headers -I/usr/include -pipe -O2 -w cfgtest_QtNetwork.cpp -o cfgtest_QtNetwork -F/Library/Frameworks -L/Library/Frameworks -headerpad_max_install_names -framework QtNetwork -framework QtCore Checking to see if the QtOpenGL module should be built... g++ -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_CORE_LIB -I. -I/mkspecs/macx-g++ -I/Library/Frameworks/QtOpenGL.framework/Headers -I/Library/Frameworks/QtCore.framework/Headers -I/usr/include -I/System/Library/Frameworks/OpenGL.framework/Headers -I/System/Library/Frameworks/AGL.framework/Headers/ -pipe -O2 -w cfgtest_QtOpenGL.cpp -o cfgtest_QtOpenGL -F/Library/Frameworks -L/Library/Frameworks -headerpad_max_install_names -framework QtOpenGL -framework QtGui -framework QtCore -framework QtCore -framework OpenGL -framework AGL Checking to see if the QtScript module should be built... g++ -DQT_NO_DEBUG -DQT_SCRIPT_LIB -I. -I/mkspecs/macx-g++ -I/Library/Frameworks/QtScript.framework/Headers -I/usr/include -pipe -O2 -w cfgtest_QtScript.cpp -o cfgtest_QtScript -F/Library/Frameworks -L/Library/Frameworks -headerpad_max_install_names -framework QtScript -framework QtCore Checking to see if the QtScriptTools module should be built... g++ -DQT_NO_DEBUG -DQT_SCRIPTTOOLS_LIB -I. -I/mkspecs/macx-g++ -I/Library/Frameworks/QtScriptTools.framework/Headers -I/usr/include -pipe -O2 -w cfgtest_QtScriptTools.cpp -o cfgtest_QtScriptTools -F/Library/Frameworks -L/Library/Frameworks -headerpad_max_install_names -framework QtScriptTools -framework QtScript -framework QtGui -framework QtCore Checking to see if the QtSql module should be built... g++ -DQT_NO_DEBUG -DQT_SQL_LIB -I. -I/mkspecs/macx-g++ -I/Library/Frameworks/QtSql.framework/Headers -I/Library/Frameworks/QtGui.framework/Headers -I/usr/include -pipe -O2 -w cfgtest_QtSql.cpp -o cfgtest_QtSql -F/Library/Frameworks -L/Library/Frameworks -headerpad_max_install_names -framework QtSql -framework QtCore -framework QtGui -framework QtCore Checking to see if the QtSvg module should be built... g++ -DQT_NO_DEBUG -I. -I/mkspecs/macx-g++ -I/Library/Frameworks/QtSvg.framework/Headers -I/usr/include -pipe -O2 -w cfgtest_QtSvg.cpp -o cfgtest_QtSvg -F/Library/Frameworks -L/Library/Frameworks -headerpad_max_install_names -framework QtSvg -framework QtGui -framework QtCore Checking to see if the QtTest module should be built... g++ -DQT_NO_DEBUG -DQT_TEST_LIB -I. -I/mkspecs/macx-g++ -I/Library/Frameworks/QtTest.framework/Headers -I/usr/include -pipe -O2 -w cfgtest_QtTest.cpp -o cfgtest_QtTest -F/Library/Frameworks -L/Library/Frameworks -headerpad_max_install_names -framework QtTest -framework IOKit -framework ApplicationServices -framework Security -framework QtCore Checking to see if the QtWebKit module should be built... g++ -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_CORE_LIB -I. -I/mkspecs/macx-g++ -I/Library/Frameworks/QtWebKit.framework/Headers -I/Library/Frameworks/QtCore.framework/Headers -I/usr/include -pipe -O2 -w cfgtest_QtWebKit.cpp -o cfgtest_QtWebKit -F/Library/Frameworks -L/Library/Frameworks -headerpad_max_install_names -framework QtWebKit -framework phonon -framework QtDBus -framework QtXml -framework QtXmlPatterns -framework QtGui -framework QtNetwork -framework QtCore -framework QtCore Checking to see if the QtXml module should be built... g++ -DQT_NO_DEBUG -DQT_XML_LIB -I. -I/mkspecs/macx-g++ -I/Library/Frameworks/QtXml.framework/Headers -I/usr/include -pipe -O2 -w cfgtest_QtXml.cpp -o cfgtest_QtXml -F/Library/Frameworks -L/Library/Frameworks -headerpad_max_install_names -framework QtXml -framework QtCore Checking to see if the QtXmlPatterns module should be built... g++ -DQT_NO_DEBUG -DQT_XMLPATTERNS_LIB -I. -I/mkspecs/macx-g++ -I/Library/Frameworks/QtXmlPatterns.framework/Headers -I/usr/include -pipe -O2 -w cfgtest_QtXmlPatterns.cpp -o cfgtest_QtXmlPatterns -F/Library/Frameworks -L/Library/Frameworks -headerpad_max_install_names -framework QtXmlPatterns -framework QtNetwork -framework QtCore Checking to see if the phonon module should be built... g++ -DQT_NO_DEBUG -DQT_PHONON_LIB -I. -I/mkspecs/macx-g++ -I/Library/Frameworks/phonon.framework/Headers -I/usr/include -pipe -O2 -w cfgtest_phonon.cpp -o cfgtest_phonon -F/Library/Frameworks -L/Library/Frameworks -headerpad_max_install_names -framework phonon -framework QtDBus -framework QtXml -framework QtGui -framework QtCore Checking to see if the QtAssistant module should be built... g++ -DQT_NO_DEBUG -I. -I/mkspecs/macx-g++ -I/Library/Frameworks/QtAssistant.framework/Headers -I/Library/Frameworks/QtGui.framework/Headers -I/Library/Frameworks/QtNetwork.framework/Headers -I/usr/include -pipe -O2 -w cfgtest_QtAssistant.cpp -o cfgtest_QtAssistant -F/Library/Frameworks -L/Library/Frameworks -headerpad_max_install_names -framework QtAssistant -framework QtGui -framework QtNetwork -framework QtCore -framework QtGui -framework QtCore -framework QtNetwork -framework QtCore Checking to see if the QtDesigner module should be built... g++ -DQT_NO_DEBUG -I. -I/mkspecs/macx-g++ -I/Library/Frameworks/QtDesigner.framework/Headers -I/usr/include -pipe -O2 -w cfgtest_QtDesigner.cpp -o cfgtest_QtDesigner -F/Library/Frameworks -L/Library/Frameworks -headerpad_max_install_names -framework QtDesigner -framework QtScript -framework QtXml -framework QtGui -framework QtCore Qt v4.6.3 free edition is being used. Qt is built as a framework. SIP 4.10.2 is being used. The Qt header files are in /usr/include. The shared Qt libraries are in /Library/Frameworks. The Qt binaries are in /Developer/Tools/Qt. The Qt mkspecs directory is in /usr/local/Qt4.6. These PyQt modules will be built: QtCore, QtGui, QtHelp, QtMultimedia, QtNetwork, QtOpenGL, QtScript, QtScriptTools, QtSql, QtSvg, QtTest, QtWebKit, QtXml, QtXmlPatterns, phonon, QtAssistant, QtDesigner. The PyQt Python package will be installed in /Library/Python/2.6/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 /Developer/Applications/Qt/plugins/designer. The QScintilla API file will be installed in /usr/local/Qt4.6/qsci/api/python. The PyQt .sip files will be installed in /System/Library/Frameworks/Python.framework/Versions/2.6/share/sip/PyQt4. pyuic4, pyrcc4 and pylupdate4 will be installed in /System/Library/Frameworks/Python.framework/Versions/2.6/bin. Generating the C++ source for the QtCore module... "/System/Library/Frameworks/Python.framework/Versions/2.6/bin/sip" -k -o -P -x VendorID -t WS_MACX -x PyQt_NoPrintRangeBug -t Qt_4_6_2 -x Py_v3 -g -a QtCore.api -c QtCore -b QtCore/QtCore.sbf -I /Users/rmbaur/Python setup/PyQt-mac-gpl-4.7.3/sip /Users/rmbaur/Python setup/PyQt-mac-gpl-4.7.3/sip/QtCore/QtCoremod.sip sip: Usage: sip [-h] [-V] [-a file] [-b file] [-c dir] [-d file] [-e] [-g] [-I dir] [-j #] [-k] [-m file] [-o] [-p module] [-r] [-s suffix] [-t tag] [-w] [-x feature] [-z file] [file] Error: Unable to create the C++ code. _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
