Re: [PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard)
On Thu, 27 Jun 2013 18:59:26 -0500, William Kyngesburye wokl...@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 It's odd though, even on OS X 10.7, I get macx-g++ as the default for SIP. 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 Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard)
Phil, On 28 Jun 2013, at 09:53, Phil Thompson wrote: On Thu, 27 Jun 2013 18:59:26 -0500, William Kyngesburye wokl...@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 listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard)
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 wokl...@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 listPyQt@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 ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard)
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 wokl...@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 listPyQt@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 ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard)
William, On 28 Jun 2013, at 16:10, William Kyngesburye wrote: It should be: --spec=macx-llvm Do you get the same error? Yes... it's still trying to get at clang++ It looks like qmake is trying to get at clang++ - the day was going to come when me still being on Snow Leopard started being a limitation.. -- 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 listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard)
William, On 28 Jun 2013, at 16:20, William Kyngesburye wrote: 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++ Changing self.qmake_spec = 'macx-clang' to self.qmake_spec = 'macx-llvm' in configure.py doesn't appear to work. I still get the same error because it's still (somehow), and it doesn't seem to matter whether I put --spec=mac-llvm in when I run configure.py either... :-( -- 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 listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard)
On Fri, 28 Jun 2013 10:20:24 -0500, William Kyngesburye wokl...@kyngchaos.com wrote: 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++. The attached patch should fix it. Phildiff -r e74dbc5074d0 Makefile --- a/Makefile Fri Jun 28 16:51:28 2013 +0100 +++ b/Makefile Fri Jun 28 17:12:11 2013 +0100 @@ -50,7 +50,7 @@ @SIPBIN=$(MYSIPBIN) ./build.py prepare config: - (cd PyQt $(MYPYTHONBIN) configure.py --confirm-license --qmake=$(QT_QMAKE) --sip=$(MYSIPBIN) -c -j$(PARTS) --debug) + (cd PyQt $(MYPYTHONBIN) configure.py --confirm-license --qmake=$(QT_QMAKE) --sip=$(MYSIPBIN) -c -j$(PARTS) --debug --spec macx-llvm) config-consolidated: (cd PyQt $(MYPYTHONBIN) configure.py --confirm-license --qmake=$(QT_QMAKE) --sip=$(MYSIPBIN) -c -j$(PARTS) --consolidate) diff -r e74dbc5074d0 lib/configure.py --- a/lib/configure.py Fri Jun 28 16:51:28 2013 +0100 +++ b/lib/configure.py Fri Jun 28 17:12:11 2013 +0100 @@ -473,9 +473,11 @@ self.qsci_api_dir = os.path.join(qt_config.QT_INSTALL_DATA, 'qsci') self.qsci_api = os.path.isdir(self.qsci_api_dir) -# The binary MacOS/X Qt installer defaults to XCode. If this is what -# we might have then use macx-clang. -if sys.platform == 'darwin': +if opts.qmakespec is not None: +self.qmake_spec = opts.qmakespec +elif sys.platform == 'darwin': +# The binary MacOS/X Qt installer defaults to XCode. If this is +# what we might have then use macx-clang. if qt_config.QMAKE_SPEC == 'macx-xcode': # This will exist (and we can't check anyway). self.qmake_spec = 'macx-clang' @@ -528,9 +530,6 @@ if opts.pyuicinterpreter is not None: self.pyuic_interpreter = opts.pyuicinterpreter -if opts.qmakespec is not None: -self.qmake_spec = opts.qmakespec - if opts.qsciapidir is not None: self.qsci_api_dir = opts.qsciapidir ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard)
On Fri, 28 Jun 2013 17:16:27 +0100, Phil Thompson p...@riverbankcomputing.com wrote: On Fri, 28 Jun 2013 10:20:24 -0500, William Kyngesburye wokl...@kyngchaos.com wrote: 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++. The attached patch should fix it. Sorry, that patch had slightly more in it than it should. This one is better. Phildiff -r e74dbc5074d0 lib/configure.py --- a/lib/configure.py Fri Jun 28 16:51:28 2013 +0100 +++ b/lib/configure.py Fri Jun 28 17:12:11 2013 +0100 @@ -473,9 +473,11 @@ self.qsci_api_dir = os.path.join(qt_config.QT_INSTALL_DATA, 'qsci') self.qsci_api = os.path.isdir(self.qsci_api_dir) -# The binary MacOS/X Qt installer defaults to XCode. If this is what -# we might have then use macx-clang. -if sys.platform == 'darwin': +if opts.qmakespec is not None: +self.qmake_spec = opts.qmakespec +elif sys.platform == 'darwin': +# The binary MacOS/X Qt installer defaults to XCode. If this is +# what we might have then use macx-clang. if qt_config.QMAKE_SPEC == 'macx-xcode': # This will exist (and we can't check anyway). self.qmake_spec = 'macx-clang' @@ -528,9 +530,6 @@ if opts.pyuicinterpreter is not None: self.pyuic_interpreter = opts.pyuicinterpreter -if opts.qmakespec is not None: -self.qmake_spec = opts.qmakespec - if opts.qsciapidir is not None: self.qsci_api_dir = opts.qsciapidir ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard) - Patch v3
On Fri, 28 Jun 2013 10:20:24 -0500, William Kyngesburye wokl...@kyngchaos.com wrote: 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++. This patch should actually work. Ho hum... Phildiff -r e74dbc5074d0 lib/configure.py --- a/lib/configure.py Fri Jun 28 16:51:28 2013 +0100 +++ b/lib/configure.py Fri Jun 28 17:36:30 2013 +0100 @@ -473,15 +473,16 @@ self.qsci_api_dir = os.path.join(qt_config.QT_INSTALL_DATA, 'qsci') self.qsci_api = os.path.isdir(self.qsci_api_dir) -# The binary MacOS/X Qt installer defaults to XCode. If this is what -# we might have then use macx-clang. +if opts.qmakespec is not None: +self.qmake_spec = opts.qmakespec + if sys.platform == 'darwin': -if qt_config.QMAKE_SPEC == 'macx-xcode': -# This will exist (and we can't check anyway). -self.qmake_spec = 'macx-clang' -else: -# No need to explicitly name the default. -self.qmake_spec = '' +if opts.qmakespec is None: +# The binary MacOS/X Qt installer defaults to XCode. If this +# is what we might have then use macx-clang. +if qt_config.QMAKE_SPEC == 'macx-xcode': +# This will exist (and we can't check anyway). +self.qmake_spec = 'macx-clang' # See if it is a framework. if os.access(os.path.join(qt_config.QT_INSTALL_LIBS, 'QtCore.framework'), os.F_OK): @@ -528,9 +529,6 @@ if opts.pyuicinterpreter is not None: self.pyuic_interpreter = opts.pyuicinterpreter -if opts.qmakespec is not None: -self.qmake_spec = opts.qmakespec - if opts.qsciapidir is not None: self.qsci_api_dir = opts.qsciapidir ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard) - Patch v3
Phil, On 28 Jun 2013, at 17:39, Phil Thompson wrote: On Fri, 28 Jun 2013 10:20:24 -0500, William Kyngesburye wokl...@kyngchaos.com wrote: 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++. This patch should actually work. Thanks... it's *still* giving the same response, except when I accidentally knocked something else in configure.py and generated a syntax error (so at least I am editing and running the same file - phew!) - I wonder if something else is pointing to clang++? When I changed if qt_config.QMAKE_SPEC == 'macx-xcode': # This will exist (and we can't check anyway). self.qmake_spec = 'macx-clang' to if qt_config.QMAKE_SPEC == 'macx-xcode': # This will exist (and we can't check anyway). self.qmake_spec = 'macx-llvm' it didn't work either I'm now trying to follow through what configuration.py is doing... it seems my default Qt is still 4.7.4, but I should be pointing PyQt 5 at Qt 5. running 'qmake -query' using the Qt 5 qmake shows that 'QMAKE_SPEC:macx-clang' and 'QMAKE_XSPEC:macx_clang'. Then there is this (in configuration.py) # The default qmake spec. if self.py_platform == 'win32': if self.py_version = 0x030300: self.qmake_spec = 'win32-msvc2010' elif self.py_version = 0x020600: self.qmake_spec = 'win32-msvc2008' elif self.py_version = 0x020400: self.qmake_spec = 'win32-msvc.net' else: self.qmake_spec = 'win32-msvc' else: # Use the Qt default. (We may update it for MacOS/X later.) self.qmake_spec = '' so that's where self.qmake_spec is coming from (until it gets set to 'macx-clang' later on), and I'm setting opts.qmakespec through the command line, which is overwriting self.qmake_spec - so that *should* work, but somehow doesn't ... Maybe I should just go with Qt 4.8 and PyQt 4.8 for the moment - I've got to the end of my ability to figure this out again... -- 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 listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard) - Patch v3
On Fri, 28 Jun 2013 18:42:39 +0100, Anzir Boodoo a...@transcience.co.uk wrote: Phil, On 28 Jun 2013, at 17:39, Phil Thompson wrote: On Fri, 28 Jun 2013 10:20:24 -0500, William Kyngesburye wokl...@kyngchaos.com wrote: 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++. This patch should actually work. Thanks... it's *still* giving the same response, except when I accidentally knocked something else in configure.py and generated a syntax error (so at least I am editing and running the same file - phew!) - I wonder if something else is pointing to clang++? When I changed if qt_config.QMAKE_SPEC == 'macx-xcode': # This will exist (and we can't check anyway). self.qmake_spec = 'macx-clang' to if qt_config.QMAKE_SPEC == 'macx-xcode': # This will exist (and we can't check anyway). self.qmake_spec = 'macx-llvm' it didn't work either I'm now trying to follow through what configuration.py is doing... it seems my default Qt is still 4.7.4, but I should be pointing PyQt 5 at Qt 5. running 'qmake -query' using the Qt 5 qmake shows that 'QMAKE_SPEC:macx-clang' and 'QMAKE_XSPEC:macx_clang'. Then there is this (in configuration.py) # The default qmake spec. if self.py_platform == 'win32': if self.py_version = 0x030300: self.qmake_spec = 'win32-msvc2010' elif self.py_version = 0x020600: self.qmake_spec = 'win32-msvc2008' elif self.py_version = 0x020400: self.qmake_spec = 'win32-msvc.net' else: self.qmake_spec = 'win32-msvc' else: # Use the Qt default. (We may update it for MacOS/X later.) self.qmake_spec = '' so that's where self.qmake_spec is coming from (until it gets set to 'macx-clang' later on), and I'm setting opts.qmakespec through the command line, which is overwriting self.qmake_spec - so that *should* work, but somehow doesn't ... Maybe I should just go with Qt 4.8 and PyQt 4.8 for the moment - I've got to the end of my ability to figure this out again... I tested the patch and there was no mention of clang in any Makefile. Maybe try with tonight's snapshot so you don't need to do any patching. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard)
I was going to try it myself (haven't installed Qt5 yet, no need), but for some dumb reason, Qt5 switched to a custom Qt-made installer for their binaries. I don't trust them to not do something weird. Since the only thing I compile doesn't support Qt5 yet (and may not for a long while), I really don't have enough interest to try compiling Qt5. If you don't absolutely need Qt5, go with 4.8. I did find one discussion topic for Qt5 saying that the binary installer for 5.0.1 did not function properly on OS X 10.6 and you needed to compile Qt5, but I didn't see anything if this was fixed in the 5.0.2 installer. On Jun 28, 2013, at 1:05 PM, Phil Thompson wrote: On Fri, 28 Jun 2013 18:42:39 +0100, Anzir Boodoo a...@transcience.co.uk wrote: Phil, On 28 Jun 2013, at 17:39, Phil Thompson wrote: On Fri, 28 Jun 2013 10:20:24 -0500, William Kyngesburye wokl...@kyngchaos.com wrote: 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++. This patch should actually work. Thanks... it's *still* giving the same response, except when I accidentally knocked something else in configure.py and generated a syntax error (so at least I am editing and running the same file - phew!) - I wonder if something else is pointing to clang++? When I changed if qt_config.QMAKE_SPEC == 'macx-xcode': # This will exist (and we can't check anyway). self.qmake_spec = 'macx-clang' to if qt_config.QMAKE_SPEC == 'macx-xcode': # This will exist (and we can't check anyway). self.qmake_spec = 'macx-llvm' it didn't work either I'm now trying to follow through what configuration.py is doing... it seems my default Qt is still 4.7.4, but I should be pointing PyQt 5 at Qt 5. running 'qmake -query' using the Qt 5 qmake shows that 'QMAKE_SPEC:macx-clang' and 'QMAKE_XSPEC:macx_clang'. Then there is this (in configuration.py) # The default qmake spec. if self.py_platform == 'win32': if self.py_version = 0x030300: self.qmake_spec = 'win32-msvc2010' elif self.py_version = 0x020600: self.qmake_spec = 'win32-msvc2008' elif self.py_version = 0x020400: self.qmake_spec = 'win32-msvc.net' else: self.qmake_spec = 'win32-msvc' else: # Use the Qt default. (We may update it for MacOS/X later.) self.qmake_spec = '' so that's where self.qmake_spec is coming from (until it gets set to 'macx-clang' later on), and I'm setting opts.qmakespec through the command line, which is overwriting self.qmake_spec - so that *should* work, but somehow doesn't ... Maybe I should just go with Qt 4.8 and PyQt 4.8 for the moment - I've got to the end of my ability to figure this out again... I tested the patch and there was no mention of clang in any Makefile. Maybe try with tonight's snapshot so you don't need to do any patching. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ Earth: Mostly harmless - revised entry in the HitchHiker's Guide to the Galaxy ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard) - reverting to 4.8
William, On 29 Jun 2013, at 01:55, William Kyngesburye wrote: I was going to try it myself (haven't installed Qt5 yet, no need), but for some dumb reason, Qt5 switched to a custom Qt-made installer for their binaries. I don't trust them to not do something weird. Since the only thing I compile doesn't support Qt5 yet (and may not for a long while), I really don't have enough interest to try compiling Qt5. If you don't absolutely need Qt5, go with 4.8. I did find one discussion topic for Qt5 saying that the binary installer for 5.0.1 did not function properly on OS X 10.6 and you needed to compile Qt5, but I didn't see anything if this was fixed in the 5.0.2 installer. I think I came to that conclusion just before I left the office, and think I'll cut my losses... I'm learning Qt (and PyQt) for QGIS, so it's quite comforting that Qt 5 isn't going to be needed for a while, and 4.8 will be fine for the forseeable... Thanks for your help, and for the work you've been doing on QGIS on OS X. -- 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 listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard)
Phil, On 25 Jun 2013, at 15:42, Phil Thompson wrote: On Tue, 25 Jun 2013 15:36:59 +0100, Anzir Boodoo a...@transcience.co.uk wrote: Hello, I've been trying to install PyQt 5 on Mac OS X 10.6.8... Phil suggested: Use the --qmake flag to point to Qt5's qmake. You are probably defaulting to Qt4's. It turned out I had Qt 5 installed in my user folder, and was trying to install PyQt from a different account... So, with Qt 5 safely (I guess) installed in /usr/local/ , I tried again... 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 --verbose Password: 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. (note that I'd sudo'ed (it failed with a permission problem when I didn't), and also explicitly pointed at Qt 5.0.2's qmake I have Xcode installed in /Developer (the default installation location), so clang is at /Developer/usr/bin/ - is that the right location? anyway, there does appear to be no such thing installed as clang++ ... is this a typo somewhere or have I done something else wrong? Thanks -- 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 listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard)
Xcode on OSX 10.6 doesn't have clang++, all c++ is handled directly in clang, though I think the early versions of clang here don't fully support c++. You're better off with llvm-g++. Xcode added clang++ in later versions starting with Lion. You should try to use a different qmake spec, either macx-g++ or macx-llvm. On Jun 27, 2013, at 9:18 AM, Anzir Boodoo wrote: Phil, On 25 Jun 2013, at 15:42, Phil Thompson wrote: On Tue, 25 Jun 2013 15:36:59 +0100, Anzir Boodoo a...@transcience.co.uk wrote: Hello, I've been trying to install PyQt 5 on Mac OS X 10.6.8... Phil suggested: Use the --qmake flag to point to Qt5's qmake. You are probably defaulting to Qt4's. It turned out I had Qt 5 installed in my user folder, and was trying to install PyQt from a different account... So, with Qt 5 safely (I guess) installed in /usr/local/ , I tried again... 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 --verbose Password: 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. (note that I'd sudo'ed (it failed with a permission problem when I didn't), and also explicitly pointed at Qt 5.0.2's qmake I have Xcode installed in /Developer (the default installation location), so clang is at /Developer/usr/bin/ - is that the right location? anyway, there does appear to be no such thing installed as clang++ ... is this a typo somewhere or have I done something else wrong? Thanks -- 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 listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ First Pogril: Why is life like sticking your head in a bucket filled with hyena offal? Second Pogril: I don't know. Why IS life like sticking your head in a bucket filled with hyena offal? First Pogril: I don't know either. Wretched, isn't it? -HitchHiker's Guide to the Galaxy ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard)
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 It's odd though, even on OS X 10.7, I get macx-g++ as the default for SIP. If PyQt 5 ignores SIP for the spec, maybe there's a similar option when compiling PyQt 5 to set the spec. On Jun 27, 2013, at 10:22 AM, Anzir Boodoo wrote: William, On 27 Jun 2013, at 15:40, William Kyngesburye wrote: Xcode on OSX 10.6 doesn't have clang++, all c++ is handled directly in clang, though I think the early versions of clang here don't fully support c++. You're better off with llvm-g++. Xcode added clang++ in later versions starting with Lion. You should try to use a different qmake spec, either macx-g++ or macx-llvm. Really sorry about this, but I'm a bit of a newbie to XCode's ways... In PyQt's configure.py there is this: # The binary MacOS/X Qt installer defaults to XCode. If this is what # we might have then use macx-clang. if sys.platform == 'darwin': if qt_config.QMAKE_SPEC == 'macx-xcode': # This will exist (and we can't check anyway). self.qmake_spec = 'macx-clang' else: # No need to explicitly name the default. self.qmake_spec = '' I guess this is referring to some configuration file in Qt Can I just replace 'macx-clang' with 'macx-llvm' here? Thanks -- 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 listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ Theory of the Universe There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened. -Hitchhiker's Guide to the Galaxy 2nd season intro ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard)
On Tue, 25 Jun 2013 15:36:59 +0100, Anzir Boodoo a...@transcience.co.uk wrote: Hello, I've been trying to install PyQt 5 on Mac OS X 10.6.8, and got the following output (the first line being the Terminal command): Anzir-Boodoos-MacBook-Pro-2:PyQt-gpl-5.0 pbadmin$ python configure.py --verbose Querying qmake about your Qt installation... An internal error occured. Please report all the output from the program, including the following traceback, to supp...@riverbankcomputing.com. Traceback (most recent call last): File configure.py, line 2409, in module main(sys.argv) File configure.py, line 2366, in main target_config.get_qt_configuration(opts) File configure.py, line 484, in get_qt_configuration if qt_config.QMAKE_SPEC == 'macx-xcode': AttributeError: TargetQtConfiguration instance has no attribute 'QMAKE_SPEC' I had a look at configure.py, and notice the line in question seems to be from here: # The binary MacOS/X Qt installer defaults to XCode. If this is what # we might have then use macx-clang. if sys.platform == 'darwin': if qt_config.QMAKE_SPEC == 'macx-xcode': # This will exist (and we can't check anyway). self.qmake_spec = 'macx-clang' else: # No need to explicitly name the default. self.qmake_spec = '' # See if it is a framework. if os.access(os.path.join(qt_config.QT_INSTALL_LIBS, 'QtCore.framework'), os.F_OK): self.qt_framework = True I'm by no means a Python expert (I'm at the beginning of learning Qt, certainly), but qt_config.QMAKE_SPEC doesn't seem to be defined anywhere here (I may be completely wrong, but that appears to be where configure.py is failing). Can anyone tell me where I might have gone wrong and what I'd need to do to get PyQt 5 installed? Use the --qmake flag to point to Qt5's qmake. You are probably defaulting to Qt4's. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt