[PyQt] Installing PyQt4 on OS X 10.10

Phil Thompson phil at riverbankcomputing.com
Mon Apr 20 12:19:56 BST 2015


On 20/04/2015 11:17 am, Brian Daniel Scannell wrote:
> I am trying to get an ocean turbulence model
> (www.gotm.net<http://www.gotm.net>) running on my Mac.  The GUI is
> specified as requiring Qt4 and PyQt4, so I downloaded the last release
> of Qt4 from the archive
> 
> qt-opensource-mac-4.8.6-1.dmg<http://download.qt.io/archive/qt/4.8/4.8.6/qt-opensource-mac-4.8.6-1.dmg>
> 
> Which I ran as a normal Mac installer and it reported a successful 
> installation.
> 
> I also downloaded the last PyQt4 release from archive
> http://www.riverbankcomputing.com/software/pyqt/download
> 
> PyQt-mac-gpl-4.11.3.tar.gz<http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.11.3/PyQt-mac-gpl-4.11.3.tar.gz>
> 
> When I start the installation with the --verbose flag set, I get:
> 
> Air-2010:PyQt-mac-gpl-4.11.3 brianscannell$ python configure-ng.py 
> --verbose
> 
> Querying qmake about your Qt installation...
> 
> Determining the details of your Qt installation...
> 
> /usr/bin/qmake -spec macx-g++ -o qtdetail.mk<http://qtdetail.mk/>
> qtdetail.pro<http://qtdetail.pro/>
> 
> make -f qtdetail.mk<http://qtdetail.mk/>
> 
> g++ -c -pipe -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5
> -Wall -W -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED
> -I/usr/local/Qt4.8/mkspecs/macx-g++ -I.
> -I/Library/Frameworks/QtCore.framework/Versions/4/Headers
> -I/usr/include/QtCore -I/usr/include -I. -F/Library/Frameworks -o
> qtdetail.o qtdetail.cpp
> 
> g++: error: unrecognized command line option ‘-Xarch_x86_64’
> 
> qtdetail.mk:250<http://qtdetail.mk:250/>: recipe for target 
> 'qtdetail.o' failed
> 
> make: *** [qtdetail.o] Error 1
> 
> Error: Failed to determine the detail of your Qt installation. Try 
> again using
> 
> the --verbose flag to see more detail about the problem.
> 
> 
> I am not a developer, so in all honesty, I don't understand what the
> message is telling me, but it seems to have found the Qt4.8 but is
> throwing a hissy fit about ‘-Xarch_x86_64’ in the command line.
> Clearly it is something about the hardware architecture, but after
> that I'm at a loss.
> 
> Any suggestions on what I need to do to get PyQt installing?

Maybe XCode needs updating.

Phil


More information about the PyQt mailing list