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

Marcel Stadelmann marcel.stadelmann at gmx.net
Fri Jul 5 10:01:49 PDT 2013


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

Note the answers below.
Marcel

Am 05.07.2013 um 18:16 schrieb William Kyngesburye <woklist at kyngchaos.com>:

> Have you successfully comiled QGIS in the past?
Yes, the Master branch I compiled last time in January 2013. I remember it was as well difficult, but it worked finally. Now I try to update QGIS and also i try to install the QGIS Server.
> 
> 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.
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 CMAKE_FIND_FRAMEWORK=LAST \
>   -D QGIS_MACAPP_BUNDLE=2 \
>   ..
-- QGIS version: 1.9.0 Master (10900)
-- Found GRASS: /Applications/GRASS-6.4.app/Contents/MacOS (6.4.2)
-- Found Proj: /Library/Frameworks/PROJ.framework
-- Found GEOS: /Library/Frameworks/GEOS.framework
-- Found GDAL: /usr/local/Cellar/gdal/1.9.2/lib/libgdal.dylib (1.9.2)
-- 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: /Library/Frameworks/sqlite3.framework
-- Found PostgreSQL: /usr/local/pgsql-9.1/lib/libpq.dylib
-- Found SpatiaLite: /usr/local/lib/libspatialite.dylib
-- Touch support disabled
-- Found QScintilla2: /usr/local/lib/libqscintilla2.dylib (2.7.2)
-- Pedantic compiler settings enabled
-- Found Python executable: /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
-- Found Python version: 2.7.2
-- Found Python library: -framework Python
-- Found SIP version: 4.14.6
-- Found PyQt4 version: 4.10.1
-- Found QScintilla2 PyQt4 module: qsci_version_str:

-- Found GSL: -L/usr/local/Cellar/gsl/1.15/lib -lgsl -lgslcblas
-- Found FCGI: /usr/local/lib/libfcgi.dylib
-- txt2tags not found - disabled
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/Marcello/Downloads/Quantum-GIS-master/build

> 
> Are you following the compiling instructions in the INSTALL doc?
Since not everything work well, i started to install the required components with homebrew. But i tried to respect the order of installing.
> 
> P.S.  note about spatialite on OS X - if you use my SQLite framework, it includes spatialite, so there is no need to install your own.  QGIS might get confused and crash if it finds another spatialite (ie in SQLite framework) than it was compiled with (ie /usr/local)
How can I remove it?

> 
> On Jul 5, 2013, at 5:18 AM, Marcel Stadelmann wrote:
> 
>> Hi all,
>> 
>> Cmake the Master QGIS branch gives me the following error messages. It seems to be a problem with Qt4. I already reinstalled it, but it doesn't help. And there are no hints in the google net, so I'm lost. Can anybody help? Thank you.
>> 
>> 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 \
>>> ..
>> -- QGIS version: 1.9.0 Master (10900)
>> -- Found GRASS: /Applications/GRASS-6.4.app/Contents/MacOS (6.4.2)
>> -- Found Proj: /Library/Frameworks/PROJ.framework
>> -- Found GEOS: /Library/Frameworks/GEOS.framework
>> -- Found GDAL: /usr/local/Cellar/gdal/1.9.2/lib/libgdal.dylib (1.9.2)
>> -- 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: /Library/Frameworks/sqlite3.framework
>> -- Found PostgreSQL: /usr/local/pgsql-9.1/lib/libpq.dylib
>> -- Found SpatiaLite: /usr/local/lib/libspatialite.dylib
>> CMake Error at CMakeLists.txt:233 (MESSAGE):
>> Some Qt4 modules haven't been found!
>> 
>> 
>> -- Touch support disabled
>> -- Found QScintilla2: /usr/local/lib/libqscintilla2.dylib (2.7.2)
>> Qt QTSVG library not found.
>> Qt QTWEBKIT library not found.
>> Qt QTGUI library not found.
>> Qt QTXML library not found.
>> Qt QTSQL library not found.
>> Qt QTNETWORK library not found.
>> -- Pedantic compiler settings enabled
>> -- Found Python executable: /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
>> -- Found Python version: 2.7.2
>> -- Found Python library: -framework Python
>> -- Found SIP version: 4.14.4
>> -- Found PyQt4 version: 4.9.4
>> -- Found QScintilla2 PyQt4 module: 2.7
>> -- Found GSL: -L/usr/local/Cellar/gsl/1.15/lib -lgsl -lgslcblas
>> -- Found FCGI: /usr/local/lib/libfcgi.dylib
>> -- txt2tags not found - disabled
>> -- Configuring incomplete, errors occurred!
>> 
>> 
>> 
>> Here is the result of qmake -query:
>> Marcels-iMac:build Marcello$ qmake -query
>> QT_INSTALL_PREFIX:/
>> QT_INSTALL_DATA:/usr/local/Qt4.8
>> QT_INSTALL_DOCS:/Developer/Documentation/Qt
>> QT_INSTALL_HEADERS:/usr/include
>> QT_INSTALL_LIBS:/Library/Frameworks
>> QT_INSTALL_BINS:/Developer/Tools/Qt
>> QT_INSTALL_PLUGINS:/Developer/Applications/Qt/plugins
>> QT_INSTALL_IMPORTS:/Developer/Applications/Qt/imports
>> QT_INSTALL_TRANSLATIONS:/Developer/Applications/Qt/translations
>> QT_INSTALL_CONFIGURATION:/Library/Preferences/Qt
>> QT_INSTALL_EXAMPLES:/Developer/Examples/Qt/
>> QT_INSTALL_DEMOS:/Developer/Examples/Qt/Demos
>> QMAKE_MKSPECS:/usr/local/Qt4.8/mkspecs
>> QMAKE_VERSION:2.01a
>> QT_VERSION:4.8.5
>> 
>> 
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
> 
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
> 
> "We are at war with them. Neither in hatred nor revenge and with no particular pleasure I shall kill every ___ I can until the war is over. That is my duty."
> 
> "Don't you even hate 'em?"
> 
> "What good would it do if I did? If all the many millions of people of the allied nations devoted an entire year exclusively to hating the ____ it wouldn't kill one ___ nor shorten the war one day."
> 
> <Ha, ha> "And it might give 'em all stomach ulcers."
> 
> - Tarzan, on war
> 




More information about the Qgis-user mailing list