[PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard)

William Kyngesburye woklist at kyngchaos.com
Fri Jun 28 16:20:24 BST 2013


Though I see now what you mean by those lines in configure.py - whatever you give for --spec will be overridden by that 'darwin' if block.  And if it isn't macx-xcode it defaults to whatever Qt5 was compiled with, probably clang++.

On Jun 28, 2013, at 10:10 AM, William Kyngesburye wrote:

> It should be:
> 
> --spec=macx-llvm
> 
> Do you get the same error?
> 
> On Jun 28, 2013, at 9:38 AM, Anzir Boodoo wrote:
> 
>> Phil,
>> On 28 Jun 2013, at 09:53, Phil Thompson wrote:
>> 
>>> On Thu, 27 Jun 2013 18:59:26 -0500, William Kyngesburye
>>> <woklist at kyngchaos.com> wrote:
>>>> PyQt should be picking the spec from SIP (unless PyQt 5 changed that). 
>>>> You can specify the spec when compiling SIP with the option:
>>>> 
>>>> -p macx-g++
>>>> 
>>>> if that doesn't work when compiling PyQt, try:
>>>> 
>>>> -p macx-llvm
>>>> 
>>>> If PyQt 5 ignores SIP for the spec, maybe there's a similar option when
>>>> compiling PyQt 5 to set the spec.
>>> 
>>> It's --spec
>> 
>> Neither of those seem to work, unless I've got the syntax wrong - I've tried '--spec=macx-llvm' and '--spec=-p macx-llvm' and both came out the same - it's still trying to use clang++:
>> 
>>> Anzir-Boodoos-MacBook-Pro-2:PyQt-gpl-5.0 pbadmin$ sudo python configure.py --qmake /usr/local/Qt5.0.2/5.0.2/clang_64/bin/qmake --spec=-p macx-llvm --verbose
>>> Querying qmake about your Qt installation...
>>> Determining the details of your Qt installation...
>>> /usr/local/Qt5.0.2/5.0.2/clang_64/bin/qmake -o qtdetail.mk qtdetail.pro
>>> make -f qtdetail.mk
>>> clang++ -c -pipe -mmacosx-version-min=10.6 -O2 -Wall -W -fPIE -DQT_NO_DEBUG -DQT_CORE_LIB -I/usr/local/Qt5.0.2/5.0.2/clang_64/mkspecs/macx-clang -I. -I/usr/local/Qt5.0.2/5.0.2/clang_64/include -I/usr/local/Qt5.0.2/5.0.2/clang_64/include/QtCore -I/usr/local/Qt5.0.2/5.0.2/clang_64/lib/QtCore.framework/Versions/5/Headers -I. -o qtdetail.o qtdetail.cpp
>>> make: clang++: No such file or directory
>>> 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 had wondered if maybe my Xcode was too old, but it appears 3.2.6 is the last version to work on Snow Leopard... if I had a spare machine to run Adobe CS2 on then I'd already be on Mountain Lion, but I don't :-(
>> 
>> -- 
>> Anzir Boodoo, PhD student
>> The Institute for Transport Studies, The University of Leeds, LEEDS LS2 9JT
>> QUEEN'S ANNIVERSARY PRIZE WINNERS - 'sustained transport excellence' - www.its.leeds.ac.uk/queensprize
>> 
>> _______________________________________________
>> PyQt mailing list    PyQt at riverbankcomputing.com
>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
> 
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
> 
> "Time is an illusion - lunchtime doubly so."
> 
> - Ford Prefect
> 
> 

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Oh, look, I seem to have fallen down a deep, dark hole.  Now what does that remind me of?  Ah, yes - life."

- Marvin




More information about the PyQt mailing list