Hi Robin,<br><br> I was the poster of the thread you mentioned.. Though i could not "install" PyQt 4 on my Mac OS X 10.6.4 (phew.. i was really tired of trying all possible ways)i found a workaround.. I copied the PyQt4 folder from another Mac machine which is running on OS X 10.5.6 and pasted into my site-packages folder with all the QtGui.so,QtCore.so and other files.. <br>
<br> Since it's in sys.path if you use import PyQt4.QtGui it should work.. Infact SIP is sorta a set of framework that converts C/C++ libraries into .so files so that they can be imported into python modules.. <br>
<br> I don't know whether it's the "proper way" of doing that.. It just works fine for me.. I wonder why this issue hasn't been fixed by PyQt after this many months and mods. not intrested to answer with a complete solution.. <br>
<br>P.S:If u can't find the .so files anywhere let me know.. i'll zip it and send to you..<br><br>Regards,<br>Jeba <br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Message: 1<br>
Date: Thu, 10 Jun 2010 14:22:20 -0400<br>
From: Robin M Baur <<a href="mailto:rmb62@cornell.edu">rmb62@cornell.edu</a>><br>
To: <a href="mailto:pyqt@riverbankcomputing.com">pyqt@riverbankcomputing.com</a><br>
Subject: [PyQt] Building PyQt4 on Mac 10.6.3 -- python configure.py<br>
fails<br>
Message-ID:<br>
<<a href="mailto:AANLkTiniaFGpUX8PpoIBeoWGxgxcsQ9vkrF-S_tq9muJ@mail.gmail.com">AANLkTiniaFGpUX8PpoIBeoWGxgxcsQ9vkrF-S_tq9muJ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
Hello list,<br>
<br>
I'm having difficulty building PyQt4 on my system. python configure.py<br>
exits with the complaint "Error: Unable to create the C++ code." The<br>
full output of python configure.py --verbose is pasted at the end of<br>
this email, but first, here's what I've done so far:<br>
<br>
0. I'm running Mac 10.6.3, booting in 64-bit mode by default, with a<br>
<a href="http://python.org" target="_blank">python.org</a> 64-bit python (2.6.1, which is somewhat old, I know).<br>
<br>
1. I installed Qt 4.6.3 from the Cocoa .dmg at<br>
<a href="http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x/" target="_blank">http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x/</a><br>
. I thought this did a 64-bit install, but I might be wrong. (At any<br>
rate I'm _not_ getting the familiar "You are building a 64-bit<br>
application, but using a 32-bit version of Qt" error.)<br>
<br>
2. I built sip 4.10.2 by the usual python configure.py / make / sudo<br>
make install. The docs at<br>
<a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#configuring-sip-and-pyqt-for-macos-10-6-snow-leopard" target="_blank">http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#configuring-sip-and-pyqt-for-macos-10-6-snow-leopard</a><br>
say this should build 64-bit by default.<br>
<br>
3. (Possibly irrelevant) I built QScintilla 2.4.3 by qmake -spec<br>
macx-g++ / make / sudo make install.<br>
<br>
4. I attempted to build PyQt 4.7.3, but python configure.py fails (see<br>
log at the end of this email).<br>
<br>
I found this thread describing a similar problem, but didn't see<br>
anything indicating that the poster had resolved the issue:<br>
<a href="http://www.riverbankcomputing.com/pipermail/pyqt/2010-April/026333.html" target="_blank">http://www.riverbankcomputing.com/pipermail/pyqt/2010-April/026333.html</a><br>
<br>
Any ideas about what to try next?<br>
<br>
Thanks,<br>
Robin<br>
<br>
Arcane:PyQt-mac-gpl-4.7.3 rmbaur$ python configure.py --verbose<br>
Determining the layout of your Qt installation...<br>
/usr/bin/qmake -spec macx-g++ -o <a href="http://qtdirs.mk" target="_blank">qtdirs.mk</a> <a href="http://qtdirs.pro" target="_blank">qtdirs.pro</a><br>
make -f <a href="http://qtdirs.mk" target="_blank">qtdirs.mk</a><br>
g++ -c -pipe -g -gdwarf-2 -Wall -W -DQT_CORE_LIB -DQT_SHARED<br>
-I/usr/local/Qt4.6/mkspecs/macx-g++ -I.<br>
-I/Library/Frameworks/QtCore.framework/Versions/4/Headers<br>
-I/usr/include/QtCore -I/usr/include -I. -F/Library/Frameworks -o<br>
qtdirs.o qtdirs.cpp<br>
g++ -headerpad_max_install_names -o qtdirs.app/Contents/MacOS/qtdirs<br>
qtdirs.o -F/Library/Frameworks -L/Library/Frameworks -framework<br>
QtCore<br>
qtdirs.app/Contents/MacOS/qtdirs<br>
This is the GPL version of PyQt 4.7.3 (licensed under the GNU General Public<br>
License) for Python 2.6.1 on darwin.<br>
<br>
Type '2' to view the GPL v2 license.<br>
Type '3' to view the GPL v3 license.<br>
Type 'yes' to accept the terms of the license.<br>
Type 'no' to decline the terms of the license.<br>
<br>
Do you accept the terms of the license? yes<br>
Checking to see if the QtGui module should be built...<br>
g++ -DQT_NO_DEBUG -DQT_GUI_LIB -I. -I/mkspecs/macx-g++<br>
-I/Library/Frameworks/QtGui.framework/Headers -I/usr/include -pipe -O2<br>
-w cfgtest_QtGui.cpp -o cfgtest_QtGui -F/Library/Frameworks<br>
-L/Library/Frameworks -headerpad_max_install_names -framework QtGui<br>
-framework QtCore<br>
Checking to see if the QtHelp module should be built...<br>
g++ -DQT_NO_DEBUG -I. -I/mkspecs/macx-g++<br>
-I/Library/Frameworks/QtHelp.framework/Headers -I/usr/include -pipe<br>
-O2 -w cfgtest_QtHelp.cpp -o cfgtest_QtHelp -F/Library/Frameworks<br>
-L/Library/Frameworks -headerpad_max_install_names -framework QtHelp<br>
-framework QtSql -framework QtXml -framework QtGui -framework<br>
QtNetwork -framework QtCore<br>
Checking to see if the QtMultimedia module should be built...<br>
g++ -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -I. -I/mkspecs/macx-g++<br>
-I/Library/Frameworks/QtMultimedia.framework/Headers -I/usr/include<br>
-pipe -O2 -w cfgtest_QtMultimedia.cpp -o cfgtest_QtMultimedia<br>
-F/Library/Frameworks -L/Library/Frameworks<br>
-headerpad_max_install_names -framework QtMultimedia -framework<br>
ApplicationServices -framework CoreAudio -framework AudioUnit<br>
-framework AudioToolbox -framework QtGui -framework QtCore<br>
Checking to see if the QtNetwork module should be built...<br>
g++ -DQT_NO_DEBUG -DQT_NETWORK_LIB -I. -I/mkspecs/macx-g++<br>
-I/Library/Frameworks/QtNetwork.framework/Headers -I/usr/include -pipe<br>
-O2 -w cfgtest_QtNetwork.cpp -o cfgtest_QtNetwork<br>
-F/Library/Frameworks -L/Library/Frameworks<br>
-headerpad_max_install_names -framework QtNetwork -framework QtCore<br>
Checking to see if the QtOpenGL module should be built...<br>
g++ -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_CORE_LIB -I.<br>
-I/mkspecs/macx-g++ -I/Library/Frameworks/QtOpenGL.framework/Headers<br>
-I/Library/Frameworks/QtCore.framework/Headers -I/usr/include<br>
-I/System/Library/Frameworks/OpenGL.framework/Headers<br>
-I/System/Library/Frameworks/AGL.framework/Headers/ -pipe -O2 -w<br>
cfgtest_QtOpenGL.cpp -o cfgtest_QtOpenGL -F/Library/Frameworks<br>
-L/Library/Frameworks -headerpad_max_install_names -framework QtOpenGL<br>
-framework QtGui -framework QtCore -framework QtCore -framework OpenGL<br>
-framework AGL<br>
Checking to see if the QtScript module should be built...<br>
g++ -DQT_NO_DEBUG -DQT_SCRIPT_LIB -I. -I/mkspecs/macx-g++<br>
-I/Library/Frameworks/QtScript.framework/Headers -I/usr/include -pipe<br>
-O2 -w cfgtest_QtScript.cpp -o cfgtest_QtScript -F/Library/Frameworks<br>
-L/Library/Frameworks -headerpad_max_install_names -framework QtScript<br>
-framework QtCore<br>
Checking to see if the QtScriptTools module should be built...<br>
g++ -DQT_NO_DEBUG -DQT_SCRIPTTOOLS_LIB -I. -I/mkspecs/macx-g++<br>
-I/Library/Frameworks/QtScriptTools.framework/Headers -I/usr/include<br>
-pipe -O2 -w cfgtest_QtScriptTools.cpp -o cfgtest_QtScriptTools<br>
-F/Library/Frameworks -L/Library/Frameworks<br>
-headerpad_max_install_names -framework QtScriptTools -framework<br>
QtScript -framework QtGui -framework QtCore<br>
Checking to see if the QtSql module should be built...<br>
g++ -DQT_NO_DEBUG -DQT_SQL_LIB -I. -I/mkspecs/macx-g++<br>
-I/Library/Frameworks/QtSql.framework/Headers<br>
-I/Library/Frameworks/QtGui.framework/Headers -I/usr/include -pipe -O2<br>
-w cfgtest_QtSql.cpp -o cfgtest_QtSql -F/Library/Frameworks<br>
-L/Library/Frameworks -headerpad_max_install_names -framework QtSql<br>
-framework QtCore -framework QtGui -framework QtCore<br>
Checking to see if the QtSvg module should be built...<br>
g++ -DQT_NO_DEBUG -I. -I/mkspecs/macx-g++<br>
-I/Library/Frameworks/QtSvg.framework/Headers -I/usr/include -pipe -O2<br>
-w cfgtest_QtSvg.cpp -o cfgtest_QtSvg -F/Library/Frameworks<br>
-L/Library/Frameworks -headerpad_max_install_names -framework QtSvg<br>
-framework QtGui -framework QtCore<br>
Checking to see if the QtTest module should be built...<br>
g++ -DQT_NO_DEBUG -DQT_TEST_LIB -I. -I/mkspecs/macx-g++<br>
-I/Library/Frameworks/QtTest.framework/Headers -I/usr/include -pipe<br>
-O2 -w cfgtest_QtTest.cpp -o cfgtest_QtTest -F/Library/Frameworks<br>
-L/Library/Frameworks -headerpad_max_install_names -framework QtTest<br>
-framework IOKit -framework ApplicationServices -framework Security<br>
-framework QtCore<br>
Checking to see if the QtWebKit module should be built...<br>
g++ -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_CORE_LIB -I.<br>
-I/mkspecs/macx-g++ -I/Library/Frameworks/QtWebKit.framework/Headers<br>
-I/Library/Frameworks/QtCore.framework/Headers -I/usr/include -pipe<br>
-O2 -w cfgtest_QtWebKit.cpp -o cfgtest_QtWebKit -F/Library/Frameworks<br>
-L/Library/Frameworks -headerpad_max_install_names -framework QtWebKit<br>
-framework phonon -framework QtDBus -framework QtXml -framework<br>
QtXmlPatterns -framework QtGui -framework QtNetwork -framework QtCore<br>
-framework QtCore<br>
Checking to see if the QtXml module should be built...<br>
g++ -DQT_NO_DEBUG -DQT_XML_LIB -I. -I/mkspecs/macx-g++<br>
-I/Library/Frameworks/QtXml.framework/Headers -I/usr/include -pipe -O2<br>
-w cfgtest_QtXml.cpp -o cfgtest_QtXml -F/Library/Frameworks<br>
-L/Library/Frameworks -headerpad_max_install_names -framework QtXml<br>
-framework QtCore<br>
Checking to see if the QtXmlPatterns module should be built...<br>
g++ -DQT_NO_DEBUG -DQT_XMLPATTERNS_LIB -I. -I/mkspecs/macx-g++<br>
-I/Library/Frameworks/QtXmlPatterns.framework/Headers -I/usr/include<br>
-pipe -O2 -w cfgtest_QtXmlPatterns.cpp -o cfgtest_QtXmlPatterns<br>
-F/Library/Frameworks -L/Library/Frameworks<br>
-headerpad_max_install_names -framework QtXmlPatterns -framework<br>
QtNetwork -framework QtCore<br>
Checking to see if the phonon module should be built...<br>
g++ -DQT_NO_DEBUG -DQT_PHONON_LIB -I. -I/mkspecs/macx-g++<br>
-I/Library/Frameworks/phonon.framework/Headers -I/usr/include -pipe<br>
-O2 -w cfgtest_phonon.cpp -o cfgtest_phonon -F/Library/Frameworks<br>
-L/Library/Frameworks -headerpad_max_install_names -framework phonon<br>
-framework QtDBus -framework QtXml -framework QtGui -framework QtCore<br>
Checking to see if the QtAssistant module should be built...<br>
g++ -DQT_NO_DEBUG -I. -I/mkspecs/macx-g++<br>
-I/Library/Frameworks/QtAssistant.framework/Headers<br>
-I/Library/Frameworks/QtGui.framework/Headers<br>
-I/Library/Frameworks/QtNetwork.framework/Headers -I/usr/include -pipe<br>
-O2 -w cfgtest_QtAssistant.cpp -o cfgtest_QtAssistant<br>
-F/Library/Frameworks -L/Library/Frameworks<br>
-headerpad_max_install_names -framework QtAssistant -framework QtGui<br>
-framework QtNetwork -framework QtCore -framework QtGui -framework<br>
QtCore -framework QtNetwork -framework QtCore<br>
Checking to see if the QtDesigner module should be built...<br>
g++ -DQT_NO_DEBUG -I. -I/mkspecs/macx-g++<br>
-I/Library/Frameworks/QtDesigner.framework/Headers -I/usr/include<br>
-pipe -O2 -w cfgtest_QtDesigner.cpp -o cfgtest_QtDesigner<br>
-F/Library/Frameworks -L/Library/Frameworks<br>
-headerpad_max_install_names -framework QtDesigner -framework QtScript<br>
-framework QtXml -framework QtGui -framework QtCore<br>
Qt v4.6.3 free edition is being used.<br>
Qt is built as a framework.<br>
SIP 4.10.2 is being used.<br>
The Qt header files are in /usr/include.<br>
The shared Qt libraries are in /Library/Frameworks.<br>
The Qt binaries are in /Developer/Tools/Qt.<br>
The Qt mkspecs directory is in /usr/local/Qt4.6.<br>
These PyQt modules will be built: QtCore, QtGui, QtHelp, QtMultimedia,<br>
QtNetwork, QtOpenGL, QtScript, QtScriptTools, QtSql, QtSvg, QtTest, QtWebKit,<br>
QtXml, QtXmlPatterns, phonon, QtAssistant, QtDesigner.<br>
The PyQt Python package will be installed in /Library/Python/2.6/site-packages.<br>
PyQt is being built with generated docstrings.<br>
PyQt is being built with 'protected' redefined as 'public'.<br>
The Designer plugin will be installed in<br>
/Developer/Applications/Qt/plugins/designer.<br>
The QScintilla API file will be installed in /usr/local/Qt4.6/qsci/api/python.<br>
The PyQt .sip files will be installed in<br>
/System/Library/Frameworks/Python.framework/Versions/2.6/share/sip/PyQt4.<br>
pyuic4, pyrcc4 and pylupdate4 will be installed in<br>
/System/Library/Frameworks/Python.framework/Versions/2.6/bin.<br>
Generating the C++ source for the QtCore module...<br>
"/System/Library/Frameworks/Python.framework/Versions/2.6/bin/sip" -k<br>
-o -P -x VendorID -t WS_MACX -x PyQt_NoPrintRangeBug -t Qt_4_6_2 -x<br>
Py_v3 -g -a QtCore.api -c QtCore -b QtCore/QtCore.sbf -I<br>
/Users/rmbaur/Python setup/PyQt-mac-gpl-4.7.3/sip /Users/rmbaur/Python<br>
setup/PyQt-mac-gpl-4.7.3/sip/QtCore/QtCoremod.sip<br>
sip: Usage: sip [-h] [-V] [-a file] [-b file] [-c dir] [-d file] [-e]<br>
[-g] [-I dir] [-j #] [-k] [-m file] [-o] [-p module] [-r] [-s suffix]<br>
[-t tag] [-w] [-x feature] [-z file] [file]<br>
Error: Unable to create the C++ code.<br>
</blockquote></div><br>