OSGeo / homebrew-osgeo4mac

Mac homebrew tap for maintaining a stable work environment for the OSGeo.org geospatial toolset
https://git.io/fhh3X
BSD 3-Clause "New" or "Revised" License
363 stars 111 forks source link

QGis-24 build on Mavericks fails at 47% #45

Closed gijs closed 8 years ago

gijs commented 10 years ago

When I run:

$ brew install -v qgis-24 --without-globe --without-grass --without-server

...the build fails at 47%.

It's a clean install of Mavericks with commandline tools installed, fresh Homebrew installation with no messages from $ brew doctor ('Your system is ready to brew.')

Tried in bash and zsh with no difference.

Any ideas or should I try qgis-22 until this is resolved?

Thx! Gijs

...
/usr/local/Cellar/cmake/3.0.0/bin/cmake -E cmake_progress_report /tmp/qgis-24-Kpp1/QGIS-final-2_4_0/build/CMakeFiles  64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
[ 47%] Built target qgis_gui
make: *** [all] Error 2
==> Formula
Tap: osgeo/homebrew-osgeo4mac
Path: /usr/local/Library/Taps/osgeo/homebrew-osgeo4mac/Formula/qgis-24.rb
==> Configuration
HOMEBREW_VERSION: 0.9.5
HEAD: 896dad4fa82169f43613a0a393a64ec7d8087628
CPU: 8-core 64-bit haswell
OS X: 10.9.4-x86_64
Xcode: 5.1.1
X11: 2.7.6 => /opt/X11
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
CXXFLAGS: -F/usr/local/opt/qt/lib
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /usr/local/opt/bison:/usr/local/opt/readline:/usr/local/opt/sqlite:/usr/local/opt/ossp-uuid:/usr/local/opt/openssl:/usr/local/opt/libxml2:/usr/local/opt/liblwgeom:/usr/local
CMAKE_INCLUDE_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/apache2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /usr/local/opt/qt/Frameworks:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks
PKG_CONFIG_PATH: /usr/local/opt/qt/lib/pkgconfig:/usr/local/opt/gsl/lib/pkgconfig:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/expat/lib/pkgconfig:/usr/local/opt/proj/lib/pkgconfig:/usr/local/opt/spatialindex/lib/pkgconfig:/usr/local/opt/ossp-uuid/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/postgresql/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/libtiff/lib/pkgconfig:/usr/local/opt/freexl/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/json-c/lib/pkgconfig:/usr/local/opt/libspatialite/lib/pkgconfig:/usr/local/opt/gdal/lib/pkgconfig:/usr/local/opt/libusb/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.9
HOMEBREW_SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
ACLOCAL_PATH: /usr/local/opt/bison/share/aclocal:/usr/local/opt/libxml2/share/aclocal:/usr/local/share/aclocal
PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/cmake/bin:/usr/local/opt/bison/bin:/usr/local/opt/qt/bin:/usr/local/opt/sip/bin:/usr/local/opt/pyqt/bin:/usr/local/opt/gsl/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/expat/bin:/usr/local/opt/proj/bin:/usr/local/opt/ossp-uuid/bin:/usr/local/opt/openssl/bin:/usr/local/opt/postgresql/bin:/usr/local/opt/libpng/bin:/usr/local/opt/jpeg/bin:/usr/local/opt/giflib/bin:/usr/local/opt/libtiff/bin:/usr/local/opt/libgeotiff/bin:/usr/local/opt/geos/bin:/usr/local/opt/libxml2/bin:/usr/local/opt/gdal/bin:/usr/local/opt/cgal/bin:/usr/local/opt/sfcgal/bin:/usr/local/opt/postgis/bin:/usr/local/opt/gpsbabel/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

Error: qgis-24 2.4.0 did not build
Logs:
     /Users/gijs/Library/Logs/Homebrew/qgis-24/01.cmake
     /Users/gijs/Library/Logs/Homebrew/qgis-24/01.cmake.cc
     /Users/gijs/Library/Logs/Homebrew/qgis-24/02.make
     /Users/gijs/Library/Logs/Homebrew/qgis-24/02.make.cc
...
-- The C compiler identification is AppleClang 5.1.0.5030040
-- The CXX compiler identification is AppleClang 5.1.0.5030040
-- Check for working C compiler: /usr/local/Library/ENV/4.3/clang
-- Check for working C compiler: /usr/local/Library/ENV/4.3/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/local/Library/ENV/4.3/clang++
-- Check for working CXX compiler: /usr/local/Library/ENV/4.3/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- QGIS version: 2.4.0 Chugiak (20400)
-- Could not find GRASS
-- Looking for openpty
-- Looking for openpty - found
-- Found Proj: /usr/local/lib/libproj.dylib
-- Found GEOS: /usr/local/Cellar/geos/3.4.2/lib/libgeos_c.dylib
-- Found GDAL: /usr/local/Cellar/gdal/1.11.0/lib/libgdal.dylib (1.11.0)
-- Found Expat: /usr/local/lib/libexpat.dylib
-- Found Spatialindex: /usr/local/lib/libspatialindex.dylib
-- Found Qwt: /usr/local/opt/qwt/lib/qwt.framework/qwt (6.1.0)
-- Found QwtPolar: /usr/local/opt/qwtpolar/lib/qwtpolar.framework/qwtpolar
-- Found Sqlite3: /usr/local/opt/sqlite/lib/libsqlite3.dylib
-- Found PostgreSQL: /usr/local/Cellar/postgresql/9.3.5/lib/libpq.dylib
-- Found SpatiaLite: /usr/local/lib/libspatialite.dylib
-- Looking for gaiaDropTable in /usr/local/lib/libspatialite.dylib
-- Looking for gaiaDropTable in /usr/local/lib/libspatialite.dylib - found
-- Looking for gaiaStatisticsInvalidate in /usr/local/lib/libspatialite.dylib
-- Looking for gaiaStatisticsInvalidate in /usr/local/lib/libspatialite.dylib - found
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt4: /usr/local/bin/qmake (found suitable version "4.8.6", minimum required is "4.7.0")
-- Found Qt version: 4.8.6
-- Touch support disabled
-- Found QScintilla2: /usr/local/opt/qscintilla2/lib/libqscintilla2.dylib (2.8)
-- Pedantic compiler settings enabled
-- Found PythonInterp: /usr/bin/python (found version "2.7.5")
-- Found Python executable: /usr/bin/python
-- Found Python version: 2.7.5
-- Found Python library: -framework Python
-- Found SIP version: 4.16.1
-- Found PyQt4 version: 4.10.4
-- Found QScintilla2 PyQt4 module: 2.8
-- Found GSL: -L/usr/local/Cellar/gsl/1.16/lib -lgsl -lgslcblas
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/qgis-24-aMUx/QGIS-final-2_4_0/build
gijs commented 10 years ago

Tried qgis-22 but it also fails:

libgdal.dylib /usr/local/lib/libspatialindex.dylib /usr/local/lib/libexpat.dylib /usr/local/opt/sqlite/lib/libsqlite3.dylib /usr/local/lib/libspatialite.dylib
/usr/local/Cellar/cmake/3.0.0/bin/cmake -E cmake_progress_report /tmp/qgis-22-e61F/QGIS-final-2_2_0/build/CMakeFiles  67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
[ 45%] Built target qgis_gui
make: *** [all] Error 2
==> Formula
Tap: osgeo/homebrew-osgeo4mac
Path: /usr/local/Library/Taps/osgeo/homebrew-osgeo4mac/Formula/qgis-22.rb
==> Configuration
HOMEBREW_VERSION: 0.9.5
HEAD: 896dad4fa82169f43613a0a393a64ec7d8087628
CPU: 8-core 64-bit haswell
OS X: 10.9.4-x86_64
Xcode: 5.1.1
X11: 2.7.6 => /opt/X11
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
CXXFLAGS: -F/usr/local/opt/qt/lib
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /usr/local/opt/bison:/usr/local/opt/readline:/usr/local/opt/sqlite:/usr/local/opt/ossp-uuid:/usr/local/opt/openssl:/usr/local/opt/libxml2:/usr/local/opt/liblwgeom:/usr/local
CMAKE_INCLUDE_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/apache2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /usr/local/opt/qt/Frameworks:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks
PKG_CONFIG_PATH: /usr/local/opt/qt/lib/pkgconfig:/usr/local/opt/gsl/lib/pkgconfig:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/expat/lib/pkgconfig:/usr/local/opt/proj/lib/pkgconfig:/usr/local/opt/spatialindex/lib/pkgconfig:/usr/local/opt/ossp-uuid/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/postgresql/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/libtiff/lib/pkgconfig:/usr/local/opt/freexl/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/json-c/lib/pkgconfig:/usr/local/opt/libspatialite/lib/pkgconfig:/usr/local/opt/gdal/lib/pkgconfig:/usr/local/opt/libusb/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.9
HOMEBREW_SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
ACLOCAL_PATH: /usr/local/opt/bison/share/aclocal:/usr/local/opt/libxml2/share/aclocal:/usr/local/share/aclocal
PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/cmake/bin:/usr/local/opt/bison/bin:/usr/local/opt/qt/bin:/usr/local/opt/sip/bin:/usr/local/opt/pyqt/bin:/usr/local/opt/gsl/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/expat/bin:/usr/local/opt/proj/bin:/usr/local/opt/fcgi/bin:/usr/local/opt/ossp-uuid/bin:/usr/local/opt/openssl/bin:/usr/local/opt/postgresql/bin:/usr/local/opt/libpng/bin:/usr/local/opt/jpeg/bin:/usr/local/opt/giflib/bin:/usr/local/opt/libtiff/bin:/usr/local/opt/libgeotiff/bin:/usr/local/opt/geos/bin:/usr/local/opt/libxml2/bin:/usr/local/opt/gdal/bin:/usr/local/opt/gpsbabel/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

Error: qgis-22 2.2.0 did not build
dakcarto commented 10 years ago

Hi Gijs. Thanks for reporting.

Please provide links to logs, i.e. brew gist-logs --config --doctor qgis-24. See Homebrew Troubleshooting.

dakcarto commented 10 years ago

I think I may have fixed the issue with dbd0619. Please do brew update and try again.

gijs commented 10 years ago

Tried brew update, but still doesnt get to 100% Output of brew gist-logs --config --doctor qgis-24: https://gist.github.com/7e860efc2482864fd666

gijs commented 10 years ago

Somehow it worked when I did $ brew install osgeo/osgeo4mac/qgis-24 instead of $ brew install -v qgis-24. I don't understand it but at least I have QGis working again :) Shall I close this?

dakcarto commented 10 years ago

@gijs I am unsure of the issue noted in your gist-logs output. It appears to be related to using only system Python. I have limited the pouring of the uploaded bottles to only supporting Homebrew Python. This is to reduce the incompatibility with existing installs of QGIS stable from Kynchaos.com (common).

Please try the following, if you have time:

brew update
brew reinstall expat
brew upgrade qgis-24

If you are using system Python, you may still run into the same build error. Please let me know if you do, and I will work on a fix. Reopening issue because it still needs fixed, I think.

Switching to Homebrew Python at this point for you may only cause headaches, since several key formulae have been built off of the system Python already, e.g. gdal, pyqt, qscintilla2. If you do switch, reinstall those after installing python. Using Homebrew Python will allow you to use the re-built bottle for Mavericks, however.

Note: expat was previously linked to HOMEBREW_PREFIX, but is now keg-only. So, reinstalling it should clean up your brew doctor output as well.

dakcarto commented 8 years ago

Formula deprecated. Closing.