[Qgis-user] QGIS installation problem with Mac OSX 10.8.4 and some Qt4 Modules
William Kyngesburye
woklist at kyngchaos.com
Sat Jul 6 09:15:11 PDT 2013
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.
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.
If you still get the pyqt compile error, it's beyond me, might want to try the pyqt mailing list.
On Jul 6, 2013, at 11:07 AM, Marcel Stadelmann wrote:
> 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:
>
> 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
> /Users/Marcello/Downloads/PyQt-mac-gpl-4.10.2/QtCore/sipQtCoreQPyNullVariant_5.cpp:301: error: too many initializers for ‘sipClassTypeDef’
> make[1]: *** [sipQtCoreQPyNullVariant_5.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> /Users/Marcello/Downloads/PyQt-mac-gpl-4.10.2/QtCore/sipQtCoreQXmlStreamReader.cpp:1856: error: too many initializers for ‘sipClassTypeDef’
> /Users/Marcello/Downloads/PyQt-mac-gpl-4.10.2/QtCore/sipQtCoreQXmlStreamWriter.cpp:1198: error: too many initializers for ‘sipClassTypeDef’
> /Users/Marcello/Downloads/PyQt-mac-gpl-4.10.2/QtCore/sipQtCoreQXmlStreamEntityResolver.cpp:282: error: too many initializers for ‘sipClassTypeDef’
> make[1]: *** [sipQtCoreQXmlStreamReader.o] Error 1
> make[1]: *** [sipQtCoreQXmlStreamWriter.o] Error 1
> make[1]: *** [sipQtCoreQXmlStreamEntityResolver.o] Error 1
> /Users/Marcello/Downloads/PyQt-mac-gpl-4.10.2/QtCore/sipQtCoreQXmlStreamEntityDeclaration.cpp:409: error: too many initializers for ‘sipClassTypeDef’
> /Users/Marcello/Downloads/PyQt-mac-gpl-4.10.2/QtCore/sipQtCoreQXmlStreamNotationDeclaration.cpp:349: error: too many initializers for ‘sipClassTypeDef’
> make[1]: *** [sipQtCoreQXmlStreamEntityDeclaration.o] Error 1
> /Users/Marcello/Downloads/PyQt-mac-gpl-4.10.2/QtCore/sipQtCoreQXmlStreamNamespaceDeclaration.cpp:341: error: too many initializers for ‘sipClassTypeDef’
> make[1]: *** [sipQtCoreQXmlStreamNotationDeclaration.o] Error 1
> make[1]: *** [sipQtCoreQXmlStreamNamespaceDeclaration.o] Error 1
> make: *** [all] Error 2
>
>
> Am 06.07.2013 um 17:16 schrieb William Kyngesburye <woklist at kyngchaos.com>:
>
>> yeah, something for the old sip was not deleted... try this:
>>
>> start python2.7, then:
>>
>> import sipconfig
>> sipconfig.__file__
> Marcels-iMac:PyQt-mac-gpl-4.10.2 Marcello$ python
> Python 2.7.2 (default, Oct 11 2012, 20:14:37)
> [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import sipconfig
>>>> sipconfig.__file__
> '/usr/local/lib/python2.7/site-packages/sipconfig.pyc'
>
>>
>> This should tell you where pyqt configure is finding sip. You can also get the details of that sipconfig:
>>
>> from sipconfig import _pkg_config
>> _pkg_config
>>>> from sipconfig import _pkg_config
>>>> _pkg_config
> {'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'}
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
"History is an illusion caused by the passage of time, and time is an illusion caused by the passage of history."
- Hitchhiker's Guide to the Galaxy
More information about the Qgis-user
mailing list