<div dir="ltr"><div><div>Hi,<br><br>Just two days ago I updated my QGIS build environment on Lion with SIP 4.14.7, PyQt v4.10.2 and QScintilla v2.7.2 (using latest XCode). Everything went fine, with no compile errors. So, I can confirm it work builds OK on Lion.<br>
<br></div>However, I did notice something odd. I generally run from the build directory. Due to the env update, I completely erased my build dir before doing a new configure and compile to make sure everything is a fresh build. In my CMake config options I have WITH_PY_COMPILE=TRUE, which appears to create incompatible .pyc files from the generated resource_rc.py files created with the new SIP version. Deleting the .pyc files and letting QGIS's embedded interpreter create the byte-compiled versions on launch fixed the issue (otherwise fTools and GDAL Tools would not load).<br>
<br></div><div>I will test this again on my nightly build Macs at work when I update their environments this week.<br clear="all"></div><div><div><div><div class="gmail_extra"><div><br></div><div>Regards,<br></div><div><br>
Larry<br></div>
<br><br><div class="gmail_quote">On Sat, Jul 6, 2013 at 10:54 AM, William Kyngesburye <span dir="ltr"><<a href="mailto:woklist@kyngchaos.com" target="_blank">woklist@kyngchaos.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Could be a small problem with SIP 4.14.7 and Mt Lion (sorry, I'm on Lion, but it's annoying that a minor update is sensitive to system version). If 4.14.6 works, that's OK, but good to know for updating the INSTALL doc.<br>
<br>
What version of Xcode do you have?<br>
<br>
On Jul 6, 2013, at 11:46 AM, Marcel Stadelmann wrote:<br>
<br>
> there was a PyQt4 folder, which I deleted, but it didn' help. Also compiling without -j 8 did not help.<br>
><br>
> I tried now with sip-4.14.6 and it worked. I could successfully install PyQt 4.10.2. I will later continue the QGIS installation. Thank you very much for your help.<br>
><br>
> Marcel<br>
><br>
> Am 06.07.2013 um 18:15 schrieb William Kyngesburye <<a href="mailto:woklist@kyngchaos.com">woklist@kyngchaos.com</a>>:<br>
><br>
>> make sure to delete the corresponding /usr/local/lib/python2.7/site-packages/sipconfig.py file, just to make sure. And any other sip and pyqt files and folders left there.<br>
>><br>
>> Also, try compiling without the -j 8 flag (it will take a lot longer to compile), sometimes too much parallel compilation can confuse make. Or use a smaller number for -j.<br>
>><br>
>> If you still get the pyqt compile error, it's beyond me, might want to try the pyqt mailing list.<br>
>><br>
>> On Jul 6, 2013, at 11:07 AM, Marcel Stadelmann wrote:<br>
>><br>
>>> yeah, there was an old sipconfig.pyc in /usr/local/lib/python2.7/site-packages/ (the results of your instructions see below). After deleting sipconfig.pyc, the python configuration passed, but then i got stacked while "make -j 8". The following failures appeared:<br>
>>><br>
>>> g++ -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I/Users/Marcello/Downloads/PyQt-mac-gpl-4.10.2/qpy/QtCore -I/usr/local/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/mkspecs/macx-g++ -I/Library/Frameworks/QtCore.framework/Headers -I/usr/include -F/Users/Marcello/Downloads/PyQt-mac-gpl-4.10.2/qpy/QtCore -F/Library/Frameworks -o sipQtCoreQXmlStreamNamespaceDeclaration.o sipQtCoreQXmlStreamNamespaceDeclaration.cpp<br>
>>> /Users/Marcello/Downloads/PyQt-mac-gpl-4.10.2/QtCore/sipQtCoreQPyNullVariant_5.cpp:301: error: too many initializers for ‘sipClassTypeDef’<br>
>>> make[1]: *** [sipQtCoreQPyNullVariant_5.o] Error 1<br>
>>> make[1]: *** Waiting for unfinished jobs....<br>
>>> /Users/Marcello/Downloads/PyQt-mac-gpl-4.10.2/QtCore/sipQtCoreQXmlStreamReader.cpp:1856: error: too many initializers for ‘sipClassTypeDef’<br>
>>> /Users/Marcello/Downloads/PyQt-mac-gpl-4.10.2/QtCore/sipQtCoreQXmlStreamWriter.cpp:1198: error: too many initializers for ‘sipClassTypeDef’<br>
>>> /Users/Marcello/Downloads/PyQt-mac-gpl-4.10.2/QtCore/sipQtCoreQXmlStreamEntityResolver.cpp:282: error: too many initializers for ‘sipClassTypeDef’<br>
>>> make[1]: *** [sipQtCoreQXmlStreamReader.o] Error 1<br>
>>> make[1]: *** [sipQtCoreQXmlStreamWriter.o] Error 1<br>
>>> make[1]: *** [sipQtCoreQXmlStreamEntityResolver.o] Error 1<br>
>>> /Users/Marcello/Downloads/PyQt-mac-gpl-4.10.2/QtCore/sipQtCoreQXmlStreamEntityDeclaration.cpp:409: error: too many initializers for ‘sipClassTypeDef’<br>
>>> /Users/Marcello/Downloads/PyQt-mac-gpl-4.10.2/QtCore/sipQtCoreQXmlStreamNotationDeclaration.cpp:349: error: too many initializers for ‘sipClassTypeDef’<br>
>>> make[1]: *** [sipQtCoreQXmlStreamEntityDeclaration.o] Error 1<br>
>>> /Users/Marcello/Downloads/PyQt-mac-gpl-4.10.2/QtCore/sipQtCoreQXmlStreamNamespaceDeclaration.cpp:341: error: too many initializers for ‘sipClassTypeDef’<br>
>>> make[1]: *** [sipQtCoreQXmlStreamNotationDeclaration.o] Error 1<br>
>>> make[1]: *** [sipQtCoreQXmlStreamNamespaceDeclaration.o] Error 1<br>
>>> make: *** [all] Error 2<br>
>>><br>
>>><br>
>>> Am 06.07.2013 um 17:16 schrieb William Kyngesburye <<a href="mailto:woklist@kyngchaos.com">woklist@kyngchaos.com</a>>:<br>
>>><br>
>>>> yeah, something for the old sip was not deleted... try this:<br>
>>>><br>
>>>> start python2.7, then:<br>
>>>><br>
>>>> import sipconfig<br>
>>>> sipconfig.__file__<br>
>>> Marcels-iMac:PyQt-mac-gpl-4.10.2 Marcello$ python<br>
>>> Python 2.7.2 (default, Oct 11 2012, 20:14:37)<br>
>>> [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin<br>
>>> Type "help", "copyright", "credits" or "license" for more information.<br>
>>>>>> import sipconfig<br>
>>>>>> sipconfig.__file__<br>
>>> '/usr/local/lib/python2.7/site-packages/sipconfig.pyc'<br>
>>><br>
>>>><br>
>>>> This should tell you where pyqt configure is finding sip. You can also get the details of that sipconfig:<br>
>>>><br>
>>>> from sipconfig import _pkg_config<br>
>>>> _pkg_config<br>
>>>>>> from sipconfig import _pkg_config<br>
>>>>>> _pkg_config<br>
>>> {'default_mod_dir': '/Library/Python/2.7/site-packages', 'default_bin_dir': '/System/Library/Frameworks/Python.framework/Versions/2.7/bin', 'platform': 'macx-g++', 'sip_version_str': '4.14.6', 'universal': '', 'sip_version': 265734, 'sip_config_args': '--destdir=/usr/local/Cellar/sip/4.14.6/lib/python2.7/site-packages --bindir=/usr/local/Cellar/sip/4.14.6/bin --incdir=/usr/local/Cellar/sip/4.14.6/include --sipdir=/usr/local/share/sip', 'default_sip_dir': '/usr/local/share/sip', 'sip_mod_dir': '/usr/local/Cellar/sip/4.14.6/lib/python2.7/site-packages', 'sip_bin': '/usr/local/Cellar/sip/4.14.6/bin/sip', 'sip_inc_dir': '/usr/local/Cellar/sip/4.14.6/include', 'py_conf_inc_dir': '/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7', 'deployment_target': '', 'py_lib_dir': '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config', 'arch': '', 'py_version': 132866, 'py_inc_dir': '/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7'}<br>
>><br>
>> -----<br>
>> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com><br>
>> <a href="http://www.kyngchaos.com/" target="_blank">http://www.kyngchaos.com/</a><br>
>><br>
>> "History is an illusion caused by the passage of time, and time is an illusion caused by the passage of history."<br>
>><br>
>> - Hitchhiker's Guide to the Galaxy<br>
>><br>
>><br>
><br>
<br>
-----<br>
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com><br>
<a href="http://www.kyngchaos.com/" target="_blank">http://www.kyngchaos.com/</a><br>
<br>
Earth: "Mostly harmless"<br>
<br>
- revised entry in the HitchHiker's Guide to the Galaxy<br>
<br>
<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br></div></div></div></div></div>