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 <wokl...@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'} > > On Jul 6, 2013, at 3:16 AM, Marcel Stadelmann wrote: > >> Hello, >> >> I removed everything from homebrew which could cause problems for a QGIS >> installation. I just left bison and expat in homebrew, for sqlite I was not >> sure if I can leave it (see below the brew list). Then I installed the >> required components according the install instruction, Qt 4.8.5, your >> frameworks (gdal complete) and postgres+postgis extension, spatialindex >> 1.8.1and sip 4.14.7. I got stacked installing PyQt 4.10.2. This program >> looks for sip 4.14.6 which is the old (previous) installation (see below). >> My interpretation is that the sip 4.14.7 installation was not good, although >> there was no error message. Any idea? >> >> Thank you >> Marcel >> >> Marcels-iMac:PyQt-mac-gpl-4.10.2 Marcello$ python2.7 configure.py -d >> /Library/Python/2.7/site-packages -b /usr/local/bin -n /usr/local/Qt4.8/qsci >> -v /usr/local/share/sip/PyQt4 >> Determining the layout of your Qt installation... >> This is the GPL version of PyQt 4.10.2 (licensed under the GNU General Public >> License) for Python 2.7.2 on darwin. >> >> Type '2' to view the GPL v2 license. >> Type '3' to view the GPL v3 license. >> Type 'yes' to accept the terms of the license. >> Type 'no' to decline the terms of the license. >> >> Do you accept the terms of the license? yes >> Found the license file pyqt-gpl.sip. >> Checking to see if the QtGui module should be built... >> Checking to see if the QtHelp module should be built... >> Checking to see if the QtMultimedia module should be built... >> Checking to see if the QtNetwork module should be built... >> Checking to see if the QtDBus module should be built... >> Checking to see if the QtDeclarative module should be built... >> Checking to see if the QtOpenGL module should be built... >> Checking to see if the QtScript module should be built... >> Checking to see if the QtScriptTools module should be built... >> Checking to see if the QtSql module should be built... >> Checking to see if the QtSvg module should be built... >> Checking to see if the QtTest module should be built... >> Checking to see if the QtWebKit module should be built... >> Checking to see if the QtXml module should be built... >> Checking to see if the QtXmlPatterns module should be built... >> Checking to see if the phonon module should be built... >> Checking to see if the QtAssistant module should be built... >> Checking to see if the QtDesigner module should be built... >> Checking to see if the QAxContainer module should be built... >> Checking to see if the dbus support module should be built... >> DBus v1 does not seem to be installed. >> Qt v4.8.5 free edition is being used. >> Qt is built as a framework. >> SIP 4.14.6 is being used. >> The Qt header files are in /usr/include. >> The shared Qt libraries are in /Library/Frameworks. >> The Qt binaries are in /Developer/Tools/Qt. >> The Qt mkspecs directory is in /usr/local/Qt4.8. >> These PyQt modules will be built: QtCore, QtGui, QtHelp, QtMultimedia, >> QtNetwork, QtDBus, QtDeclarative, QtOpenGL, QtScript, QtScriptTools, QtSql, >> QtSvg, QtTest, QtWebKit, QtXml, QtXmlPatterns, phonon, QtDesigner. >> The PyQt Python package will be installed in >> /Library/Python/2.7/site-packages. >> PyQt is being built with generated docstrings. >> PyQt is being built with 'protected' redefined as 'public'. >> The Designer plugin will be installed in >> /Developer/Applications/Qt/plugins/designer. >> The QScintilla API file will be installed in >> /usr/local/Qt4.8/qsci/api/python. >> The PyQt .sip files will be installed in /usr/local/share/sip/PyQt4. >> pyuic4, pyrcc4 and pylupdate4 will be installed in /usr/local/bin. >> Embedding sip flags... >> Generating the C++ source for the QtCore module... >> sh: /usr/local/Cellar/sip/4.14.6/bin/sip: No such file or directory >> Error: Unable to create the C++ code. >> Marcels-iMac:PyQt-mac-gpl-4.10.2 Marcello$ sip -V >> 4.14.7 >> Marcels-iMac:PyQt-mac-gpl-4.10.2 Marcello$ which sip >> /usr/local/bin/sip >> Marcels-iMac:PyQt-mac-gpl-4.10.2 Marcello$ brew list >> atk cairo expat gdbm ghostscript >> gsl imagemagick latex2rtf libpng little-cms2 >> pixman sqlite >> autoconf check fontconfig gdk-pixbuf giflib >> gtk+ intltool libcroco librsvg lzlib >> pkg-config xz >> automake cmake freetype geos glib >> harfbuzz jbig2dec libffi libtiff ossp-uuid >> proj >> bison doxygen freexl gettext >> graphicsmagick icu4c jpeg libgeotiff libtool >> pango readline >> >> Am 05.07.2013 um 19:22 schrieb William Kyngesburye <wokl...@kyngchaos.com>: >> >>> On Jul 5, 2013, at 12:01 PM, Marcel Stadelmann wrote: >>> >>>> Thank you for answering. In the meantime i got a step forward. I can >>>> successfully cmake qgis (see below), but when i do "make -j 8" it gives >>>> quite a lot of errors. The errors look i. e. like this: >>>> >>>> [ 56%] Generating moc_qgsabout.cxx >>>> In file included from >>>> /Users/Marcello/Downloads/Quantum-GIS-master/src/providers/spatialite/qgsspatialiteprovider.cpp:29: >>>> /Users/Marcello/Downloads/Quantum-GIS-master/src/providers/spatialite/qgsspatialiteprovider.h:393:43: >>>> error: unknown type name 'gaiaVectorLayerPtr'; did you mean >>>> 'gaiaTextReaderPtr'? >>>> bool checkLayerTypeAbstractInterface( gaiaVectorLayerPtr lyr ); >>>> ^~~~~~~~~~~~~~~~~~ >>>> gaiaTextReaderPtr >>>> >>> If they're all about spatialite, then this could be an old or incomplete >>> spatialite install (/usr/local) or confusion with the SQLite framework vs. >>> your /usr/local install. >>> >>>>> Did you have any problems compiling SIP/PyQt after installing Qt 4.8.5? >>>>> If updating to a newer Qt, did you recompile SIP/PyQt? >>>> Yes, PyQt did not work with sip 4.14.7 so I installed sip 4.14.6 with >>>> homebrew. After reinstalling Qt 4.8.4, sip 4.14.6, PyQt4 4.10.1, >>>> QScintilla2 2.7.2 (all with homebrew) and Qwt 6.0.2 (conventional) i can >>>> do at least the cmake. >>> >>> There should be no problems with SIP 4.14.7, PyQt 4.10.2 and Qt 4.8.5 (just >>> tried it myself). > > ----- > 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-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user