[Qgis-developer] [Qgis-user] QGIS installation problem with Mac OSX 10.8.4 and some Qt4 Modules

Larry Shaffer larrys at dakotacarto.com
Sat Jul 6 10:24:45 PDT 2013


Hi,

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.

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).

I will test this again on my nightly build Macs at work when I update their
environments this week.

Regards,

Larry


On Sat, Jul 6, 2013 at 10:54 AM, William Kyngesburye
<woklist at kyngchaos.com>wrote:

> 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.
>
> What version of Xcode do you have?
>
> On Jul 6, 2013, at 11:46 AM, Marcel Stadelmann wrote:
>
> > there was a PyQt4 folder, which I deleted, but it didn' help. Also
> compiling without -j 8 did not help.
> >
> > 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.
> >
> > Marcel
> >
> > Am 06.07.2013 um 18:15 schrieb William Kyngesburye <
> woklist at kyngchaos.com>:
> >
> >> 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
> >>
> >>
> >
>
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
>
> Earth: "Mostly harmless"
>
> - revised entry in the HitchHiker's Guide to the Galaxy
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20130706/4cb205bd/attachment.html>


More information about the Qgis-developer mailing list