[Qgis-user] QGIS installation problem with Mac OSX 10.8.4 and some Qt4 Modules
Marcel Stadelmann
marcel.stadelmann at gmx.net
Sat Jul 6 15:33:06 PDT 2013
I use Xcode 4.6.3
Cmake QGIS didn't work. First GDAL was not found. After including -D GDAL_CONFIG=/Library/Frameworks/GDAL.framework/Versions/1.10/unix/bin/gdal-config it was found, but other errors occurred (see below). What could it be?
Marcels-iMac:build Marcello$ cmake -D CMAKE_INSTALL_PREFIX=~/Applications \
> -D CMAKE_BUILD_TYPE=MINSIZEREL -D ENABLE_TESTS=FALSE \
> -D WITH_INTERNAL_SPATIALITE=FALSE -D WITH_PYSPATIALITE=FALSE \
> -D SPATIALINDEX_LIBRARY=/usr/local/lib/libspatialindex.dylib \
> -D SPATIALINDEX_INCLUDE_DIR=/usr/local/include/spatialindex \
> -D QWT_LIBRARY=/usr/local/qwt-6.0.2/lib/libqwt.dylib \
> -D QWT_INCLUDE_DIR=/usr/local/qwt-6.0.2/include \
> -D BISON_EXECUTABLE=/usr/local/bin/bison \
> -D GDAL_CONFIG=/Library/Frameworks/GDAL.framework/Versions/1.10/unix/bin/gdal-config \
> ..
-- QGIS version: 1.9.0 Master (10900)
-- Found GRASS: /Applications/GRASS-6.4.app/Contents/MacOS (6.4.2)
-- Found Proj: /usr/local/lib/libproj.dylib
-- Found GEOS: /usr/local/Cellar/geos/3.3.8/lib/libgeos_c.dylib
-- Found GDAL: /Library/Frameworks/GDAL.framework/Versions/1.10/unix/lib/libgdal.dylib (1.10.0)
-- Found Expat: /usr/local/lib/libexpat.dylib
-- Found Spatialindex: /usr/local/lib/libspatialindex.dylib
-- Found Qwt: /usr/local/qwt-6.0.2/lib/libqwt.dylib (6.0.2)
-- Found Sqlite3: /usr/lib/libsqlite3.dylib
-- Found PostgreSQL: /usr/local/pgsql-9.2/lib/libpq.dylib
-- Touch support disabled
-- Found QScintilla2: /usr/local/lib/libqscintilla2.dylib (2.7.2)
-- Pedantic compiler settings enabled
-- Found Python executable: /usr/bin/python
-- Found Python version: 2.7.2
-- Found Python library: -framework Python
-- Found SIP version: 4.14.6
-- Found PyQt4 version: 4.10.2
-- Found QScintilla2 PyQt4 module: 2.7.2
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
-- Found GSL: -L/usr/local/Cellar/gsl/1.15/lib -lgsl -lgslcblas
-- txt2tags not found - disabled
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
SPATIALITE_LIBRARY
linked by target "qgis_core" in directory /Users/Marcello/Downloads/Quantum-GIS-master/src/core
linked by target "offlineeditingplugin" in directory /Users/Marcello/Downloads/Quantum-GIS-master/src/plugins/offline_editing
-- Configuring incomplete, errors occurred!
Am 06.07.2013 um 18:54 schrieb William Kyngesburye <woklist at kyngchaos.com>:
> 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?
Marcels-iMac:build Marcello$ xcodebuild -version
Xcode 4.6.3
Build version 4H1503
>
> 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
>
>
More information about the Qgis-user
mailing list