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-res compilation error #732

Closed juanfcocontreras closed 5 years ago

juanfcocontreras commented 5 years ago

I'm trying to compile qgis with 3d-map support. I think to get this working it's necessary to compile qgis-res first:

brew install --with-r --with-complete qgis-res

Nevertheless, I can't get it working. The problem arises when it tries to compile pyodbc-4.0.25:

In file included from src/buffer.cpp:12:
src/pyodbc.h:151:21: error: unknown type name 'BYTE'
bool pyodbc_realloc(BYTE** pp, size_t newlen);`

Full logs:

==> Formula
Tap: osgeo/osgeo4mac
Path: /usr/local/Homebrew/Library/Taps/osgeo/homebrew-osgeo4mac/Formula/qgis-res.rb
==> Configuration
HOMEBREW_VERSION: 2.0.2
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: 117c24f4b6294e037431d3a850ced6955d53e26f
Last commit: 4 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: df5646739dcb9fce2ef9f3beaccf40f6542c5b79
Core tap last commit: 2 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: --appdir=/Applications
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.oJTHlf07iN/org.macosforge.xquartz:0
HOMEBREW_ENABLE_AUTO_UPDATE_MIGRATION: 1
HOMEBREW_LOGS: /Users/user/Library/Logs/Homebrew
HOMEBREW_NO_ANALYTICS_THIS_RUN: 1
CPU: quad-core 64-bit broadwell
Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 9.0 build 900
Git: 2.20.1 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 1.8.0_202
macOS: 10.12.6-x86_64
CLT: 9.2.0.0.1.1510905681
Xcode: 9.2
XQuartz: 2.7.11 => /opt/X11
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
CFLAGS: -I/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home/include/darwin
CXXFLAGS: -I/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home/include/darwin
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /usr/local/opt/lapack:/usr/local/opt/openblas:/usr/local/opt/openssl:/usr/local/opt/readline:/usr/local/opt/sqlite:/usr/local/opt/cython:/usr/local/opt/icu4c:/usr/local/opt/tcl-tk:/usr/local/opt/zlib:/usr/local/opt/gettext:/usr/local/opt/libffi:/usr/local/opt/qt:/usr/local/opt/bzip2:/usr/local/opt/libiconv:/usr/local/opt/expat:/usr/local/opt/curl:/usr/local/opt/libpq:/usr/local/opt/libxml2:/usr/local/opt/gdal2:/usr/local/opt/gdal2-python:/usr/local/opt/llvm:/usr/local
CMAKE_INCLUDE_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /usr/local/opt/python/Frameworks:/usr/local/opt/qt/Frameworks:/usr/local/opt/python@2/Frameworks
PKG_CONFIG_PATH: /usr/local/opt/python/lib/pkgconfig:/usr/local/opt/isl/lib/pkgconfig:/usr/local/opt/mpfr/lib/pkgconfig:/usr/local/opt/lapack/lib/pkgconfig:/usr/local/opt/openblas/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/readline/lib/pkgconfig:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/xz/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/postgresql/lib/pkgconfig:/usr/local/opt/libyaml/lib/pkgconfig:/usr/local/opt/tcl-tk/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/jpeg/lib/pkgconfig:/usr/local/opt/libtiff/lib/pkgconfig:/usr/local/opt/little-cms2/lib/pkgconfig:/usr/local/opt/openjpeg/lib/pkgconfig:/usr/local/opt/zlib/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig:/usr/local/opt/dbus/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/pcre/lib/pkgconfig:/usr/local/opt/glib/lib/pkgconfig:/usr/local/opt/qt/lib/pkgconfig:/usr/local/opt/sdl/lib/pkgconfig:/usr/local/opt/libagg/lib/pkgconfig:/usr/local/opt/libssh/lib/pkgconfig:/usr/local/opt/fontconfig/lib/pkgconfig:/usr/local/opt/pixman/lib/pkgconfig:/usr/local/opt/cairo/lib/pkgconfig:/usr/local/opt/py3cairo/lib/pkgconfig:/usr/local/opt/libsvg/lib/pkgconfig:/usr/local/opt/libsvg-cairo/lib/pkgconfig:/usr/local/opt/gdk-pixbuf/lib/pkgconfig:/usr/local/opt/libcroco/lib/pkgconfig:/usr/local/opt/fribidi/lib/pkgconfig:/usr/local/opt/graphite2/lib/pkgconfig:/usr/local/opt/harfbuzz/lib/pkgconfig:/usr/local/opt/pango/lib/pkgconfig:/usr/local/opt/librsvg/lib/pkgconfig:/usr/local/opt/atk/lib/pkgconfig:/usr/local/opt/libepoxy/lib/pkgconfig:/usr/local/opt/gtk+3/lib/pkgconfig:/usr/local/opt/gobject-introspection/lib/pkgconfig:/usr/local/opt/python@2/lib/pkgconfig:/usr/local/opt/py2cairo/lib/pkgconfig:/usr/local/opt/pygobject3/lib/pkgconfig:/usr/local/opt/pygobject/lib/pkgconfig:/usr/local/opt/gtk+/lib/pkgconfig:/usr/local/opt/pygtk/lib/pkgconfig:/usr/local/opt/aom/lib/pkgconfig:/usr/local/opt/frei0r/lib/pkgconfig:/usr/local/opt/libtasn1/lib/pkgconfig:/usr/local/opt/nettle/lib/pkgconfig:/usr/local/opt/p11-kit/lib/pkgconfig:/usr/local/opt/gnutls/lib/pkgconfig:/usr/local/opt/libass/lib/pkgconfig:/usr/local/opt/libbluray/lib/pkgconfig:/usr/local/opt/libsoxr/lib/pkgconfig:/usr/local/opt/libogg/lib/pkgconfig:/usr/local/opt/libvorbis/lib/pkgconfig:/usr/local/opt/libvpx/lib/pkgconfig:/usr/local/opt/opencore-amr/lib/pkgconfig:/usr/local/opt/opus/lib/pkgconfig:/usr/local/opt/rtmpdump/lib/pkgconfig:/usr/local/opt/flac/lib/pkgconfig:/usr/local/opt/libsndfile/lib/pkgconfig:/usr/local/opt/libsamplerate/lib/pkgconfig:/usr/local/opt/rubberband/lib/pkgconfig:/usr/local/opt/sdl2/lib/pkgconfig:/usr/local/opt/speex/lib/pkgconfig:/usr/local/opt/webp/lib/pkgconfig:/usr/local/opt/leptonica/lib/pkgconfig:/usr/local/opt/tesseract/lib/pkgconfig:/usr/local/opt/theora/lib/pkgconfig:/usr/local/opt/x264/lib/pkgconfig:/usr/local/opt/x265/lib/pkgconfig:/usr/local/opt/ffmpeg/lib/pkgconfig:/usr/local/opt/libde265/lib/pkgconfig:/usr/local/opt/libheif/lib/pkgconfig:/usr/local/opt/ilmbase/lib/pkgconfig:/usr/local/opt/openexr/lib/pkgconfig:/usr/local/opt/imagemagick/lib/pkgconfig:/usr/local/opt/expat/lib/pkgconfig:/usr/local/opt/curl/lib/pkgconfig:/usr/local/opt/freexl/lib/pkgconfig:/usr/local/opt/json-c/lib/pkgconfig:/usr/local/opt/proj/lib/pkgconfig:/usr/local/opt/libpq/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/libspatialite/lib/pkgconfig:/usr/local/opt/netcdf/lib/pkgconfig:/usr/local/opt/cfitsio/lib/pkgconfig:/usr/local/opt/popt/lib/pkgconfig:/usr/local/opt/jasper/lib/pkgconfig:/usr/local/opt/libdap/lib/pkgconfig:/usr/local/opt/zstd/lib/pkgconfig:/usr/local/opt/unixodbc/lib/pkgconfig:/usr/local/opt/xerces-c/lib/pkgconfig:/usr/local/opt/gdal2/lib/pkgconfig:/usr/local/opt/spatialindex/lib/pkgconfig:/usr/local/opt/r/lib/pkgconfig:/usr/local/opt/gsettings-desktop-schemas/share/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.12
HOMEBREW_GIT: git
ACLOCAL_PATH: /usr/local/opt/gettext/share/aclocal:/usr/local/opt/curl/share/aclocal:/usr/local/opt/libxml2/share/aclocal:/usr/local/share/aclocal
PATH: /Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home/bin:/usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/pkg-config/bin:/usr/local/opt/gcc/bin:/usr/local/opt/python/bin:/usr/local/opt/swig/bin:/usr/local/opt/gdbm/bin:/usr/local/opt/openssl/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/xz/bin:/usr/local/opt/cython/bin:/usr/local/opt/icu4c/bin:/usr/local/opt/postgresql/bin:/usr/local/opt/tcl-tk/bin:/usr/local/opt/libpng/bin:/usr/local/opt/jpeg/bin:/usr/local/opt/libtiff/bin:/usr/local/opt/little-cms2/bin:/usr/local/opt/openjpeg/bin:/usr/local/opt/freetype/bin:/usr/local/opt/dbus/bin:/usr/local/opt/gettext/bin:/usr/local/opt/pcre/bin:/usr/local/opt/glib/bin:/usr/local/opt/qt/bin:/usr/local/opt/sip-qt5/bin:/usr/local/opt/pyqt-qt5/bin:/usr/local/opt/bzip2/bin:/usr/local/opt/libiconv/bin:/usr/local/opt/sdl/bin:/usr/local/opt/qhull/bin:/usr/local/opt/ghostscript/bin:/usr/local/opt/fontconfig/bin:/usr/local/opt/cairo/bin:/usr/local/opt/gdk-pixbuf/bin:/usr/local/opt/libcroco/bin:/usr/local/opt/fribidi/bin:/usr/local/opt/graphite2/bin:/usr/local/opt/harfbuzz/bin:/usr/local/opt/pango/bin:/usr/local/opt/librsvg/bin:/usr/local/opt/svg2pdf/bin:/usr/local/opt/gtk+3/bin:/usr/local/opt/gobject-introspection/bin:/usr/local/opt/python@2/bin:/usr/local/opt/pygobject/bin:/usr/local/opt/gtk+/bin:/usr/local/opt/pygtk/bin:/usr/local/opt/wxmac/bin:/usr/local/opt/aom/bin:/usr/local/opt/libtasn1/bin:/usr/local/opt/nettle/bin:/usr/local/opt/p11-kit/bin:/usr/local/opt/gnutls/bin:/usr/local/opt/lame/bin:/usr/local/opt/libbluray/bin:/usr/local/opt/rtmpdump/bin:/usr/local/opt/flac/bin:/usr/local/opt/libsndfile/bin:/usr/local/opt/libsamplerate/bin:/usr/local/opt/rubberband/bin:/usr/local/opt/sdl2/bin:/usr/local/opt/giflib/bin:/usr/local/opt/webp/bin:/usr/local/opt/leptonica/bin:/usr/local/opt/tesseract/bin:/usr/local/opt/x264/bin:/usr/local/opt/x265/bin:/usr/local/opt/ffmpeg/bin:/usr/local/opt/libde265/bin:/usr/local/opt/libheif/bin:/usr/local/opt/libtool/bin:/usr/local/opt/openexr/bin:/usr/local/opt/imagemagick/bin:/usr/local/opt/numpy/bin:/usr/local/opt/expat/bin:/usr/local/opt/curl/bin:/usr/local/opt/geos/bin:/usr/local/opt/proj/bin:/usr/local/opt/libgeotiff/bin:/usr/local/opt/libpq/bin:/usr/local/opt/libxml2/bin:/usr/local/opt/hdf5/bin:/usr/local/opt/netcdf/bin:/usr/local/opt/hdf4/bin:/usr/local/opt/epsilon/bin:/usr/local/opt/jasper/bin:/usr/local/opt/libdap/bin:/usr/local/opt/zstd/bin:/usr/local/opt/unixodbc/bin:/usr/local/opt/xerces-c/bin:/usr/local/opt/gdal2/bin:/usr/local/opt/gdal2-python/bin:/usr/local/opt/llvm/bin:/usr/local/opt/pyside/bin:/usr/local/opt/freetds/bin:/usr/local/opt/r/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: osgeo/osgeo4mac/qgis-res 3.4.4 did not build
fjperini commented 5 years ago

@juanfcocontreras I'll check this.

I will need before: brew gist-logs qgis-res

Thanks for giving notice about the problem.

juanfcocontreras commented 5 years ago

Thanks @fjperini!

It's my first time using gist-logs command, but I can't get it working:

> brew gist-logs qgis-res
Error: Not Found

Can you help me?

fjperini commented 5 years ago

I did a quick test, with only pyodbc and it seems that it builds well.

==> /usr/local/Cellar/qgis-res/3.4.4/libexec/vendor/bin/pip install -v --no-deps --no-binary :all: --ignore-installed pyodbc
Created temporary directory: /private/tmp/pip-ephem-wheel-cache-njsder5l
Created temporary directory: /private/tmp/pip-req-tracker-v5sivjdh
Created requirements tracker '/private/tmp/pip-req-tracker-v5sivjdh'
Created temporary directory: /private/tmp/pip-install-ahd2xirn
Collecting pyodbc
  1 location(s) to search for versions of pyodbc:
  * https://pypi.org/simple/pyodbc/
  Getting page https://pypi.org/simple/pyodbc/
  Looking up "https://pypi.org/simple/pyodbc/" in the cache
  Request header has "max_age" as 0, cache bypassed
  Starting new HTTPS connection (1): pypi.org:443
  https://pypi.org:443 "GET /simple/pyodbc/ HTTP/1.1" 200 30921
  Updating cache with response from "https://pypi.org/simple/pyodbc/"
  Caching due to etag
  Analyzing links from page https://pypi.org/simple/pyodbc/
    Found link https://files.pythonhosted.org/packages/b4/41/f3eb5e56af207a8fcc02f1f84cc3fed9fcf315565e65f418ae815e399929/pyodbc-4.0.26.tar.gz#sha256=e52700b5d24a846483b5ab80acd9153f8e593999c9184ffea11596288fb33de3 (from https://pypi.org/simple/pyodbc/), version: 4.0.26
  Using version 4.0.26 (newest of versions: 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.1.6, 2.1.7, 2.1.8, 2.1.9, 2.1.10, 2.1.11, 3.0.3, 3.0.6, 3.0.7, 3.0.8, 3.0.9, 3.0.10, 3.1.1, 4.0.1, 4.0.2, 4.0.3, 4.0.5, 4.0.6, 4.0.7, 4.0.8, 4.0.9, 4.0.10, 4.0.11, 4.0.12, 4.0.13, 4.0.14, 4.0.15, 4.0.16, 4.0.17, 4.0.18, 4.0.19, 4.0.20, 4.0.21, 4.0.22, 4.0.23, 4.0.24, 4.0.25, 4.0.26)
  Created temporary directory: /private/tmp/pip-unpack-tut9_nlb
  Looking up "https://files.pythonhosted.org/packages/b4/41/f3eb5e56af207a8fcc02f1f84cc3fed9fcf315565e65f418ae815e399929/pyodbc-4.0.26.tar.gz" in the cache
  No cache entry available
  Starting new HTTPS connection (1): files.pythonhosted.org:443
  https://files.pythonhosted.org:443 "GET /packages/b4/41/f3eb5e56af207a8fcc02f1f84cc3fed9fcf315565e65f418ae815e399929/pyodbc-4.0.26.tar.gz HTTP/1.1" 200 219802
  Downloading https://files.pythonhosted.org/packages/b4/41/f3eb5e56af207a8fcc02f1f84cc3fed9fcf315565e65f418ae815e399929/pyodbc-4.0.26.tar.gz (219kB)
  Downloading from URL https://files.pythonhosted.org/packages/b4/41/f3eb5e56af207a8fcc02f1f84cc3fed9fcf315565e65f418ae815e399929/pyodbc-4.0.26.tar.gz#sha256=e52700b5d24a846483b5ab80acd9153f8e593999c9184ffea11596288fb33de3 (from https://pypi.org/simple/pyodbc/)
  Ignoring unknown cache-control directive: immutable
  Updating cache with response from "https://files.pythonhosted.org/packages/b4/41/f3eb5e56af207a8fcc02f1f84cc3fed9fcf315565e65f418ae815e399929/pyodbc-4.0.26.tar.gz"
  Caching due to etag
  Added pyodbc from https://files.pythonhosted.org/packages/b4/41/f3eb5e56af207a8fcc02f1f84cc3fed9fcf315565e65f418ae815e399929/pyodbc-4.0.26.tar.gz#sha256=e52700b5d24a846483b5ab80acd9153f8e593999c9184ffea11596288fb33de3 to build tracker '/private/tmp/pip-req-tracker-v5sivjdh'
  Running setup.py (path:/private/tmp/pip-install-ahd2xirn/pyodbc/setup.py) egg_info for package pyodbc
    Running command python setup.py egg_info
    running egg_info
    creating pip-egg-info/pyodbc.egg-info
    writing pip-egg-info/pyodbc.egg-info/PKG-INFO
    writing dependency_links to pip-egg-info/pyodbc.egg-info/dependency_links.txt
    writing top-level names to pip-egg-info/pyodbc.egg-info/top_level.txt
    writing manifest file 'pip-egg-info/pyodbc.egg-info/SOURCES.txt'
    reading manifest file 'pip-egg-info/pyodbc.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pip-egg-info/pyodbc.egg-info/SOURCES.txt'
  Source in /private/tmp/pip-install-ahd2xirn/pyodbc has version 4.0.26, which satisfies requirement pyodbc from https://files.pythonhosted.org/packages/b4/41/f3eb5e56af207a8fcc02f1f84cc3fed9fcf315565e65f418ae815e399929/pyodbc-4.0.26.tar.gz#sha256=e52700b5d24a846483b5ab80acd9153f8e593999c9184ffea11596288fb33de3
  Removed pyodbc from https://files.pythonhosted.org/packages/b4/41/f3eb5e56af207a8fcc02f1f84cc3fed9fcf315565e65f418ae815e399929/pyodbc-4.0.26.tar.gz#sha256=e52700b5d24a846483b5ab80acd9153f8e593999c9184ffea11596288fb33de3 from build tracker '/private/tmp/pip-req-tracker-v5sivjdh'
Skipping bdist_wheel for pyodbc, due to binaries being disabled for it.
Installing collected packages: pyodbc
  Created temporary directory: /private/tmp/pip-record-658ts54l
  Running setup.py install for pyodbc: started
    Running command /usr/local/Cellar/qgis-res/3.4.4/libexec/vendor/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-install-ahd2xirn/pyodbc/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/tmp/pip-record-658ts54l/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/qgis-res/3.4.4/libexec/vendor/bin/../include/site/python3.7/pyodbc
    running install
    running build
    running build_ext
    building 'pyodbc' extension
    creating build
    creating build/temp.macosx-10.14-x86_64-3.7
    creating build/temp.macosx-10.14-x86_64-3.7/src
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DPYODBC_VERSION=4.0.26 -UMAC_OS_X_VERSION_10_7 -I/usr/local/include -I/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/buffer.cpp -o build/temp.macosx-10.14-x86_64-3.7/src/buffer.o -Wno-write-strings -Wno-deprecated-declarations
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DPYODBC_VERSION=4.0.26 -UMAC_OS_X_VERSION_10_7 -I/usr/local/include -I/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/cnxninfo.cpp -o build/temp.macosx-10.14-x86_64-3.7/src/cnxninfo.o -Wno-write-strings -Wno-deprecated-declarations
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DPYODBC_VERSION=4.0.26 -UMAC_OS_X_VERSION_10_7 -I/usr/local/include -I/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/connection.cpp -o build/temp.macosx-10.14-x86_64-3.7/src/connection.o -Wno-write-strings -Wno-deprecated-declarations
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DPYODBC_VERSION=4.0.26 -UMAC_OS_X_VERSION_10_7 -I/usr/local/include -I/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/cursor.cpp -o build/temp.macosx-10.14-x86_64-3.7/src/cursor.o -Wno-write-strings -Wno-deprecated-declarations
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DPYODBC_VERSION=4.0.26 -UMAC_OS_X_VERSION_10_7 -I/usr/local/include -I/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/errors.cpp -o build/temp.macosx-10.14-x86_64-3.7/src/errors.o -Wno-write-strings -Wno-deprecated-declarations
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DPYODBC_VERSION=4.0.26 -UMAC_OS_X_VERSION_10_7 -I/usr/local/include -I/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/getdata.cpp -o build/temp.macosx-10.14-x86_64-3.7/src/getdata.o -Wno-write-strings -Wno-deprecated-declarations
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DPYODBC_VERSION=4.0.26 -UMAC_OS_X_VERSION_10_7 -I/usr/local/include -I/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/params.cpp -o build/temp.macosx-10.14-x86_64-3.7/src/params.o -Wno-write-strings -Wno-deprecated-declarations
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DPYODBC_VERSION=4.0.26 -UMAC_OS_X_VERSION_10_7 -I/usr/local/include -I/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/pyodbccompat.cpp -o build/temp.macosx-10.14-x86_64-3.7/src/pyodbccompat.o -Wno-write-strings -Wno-deprecated-declarations
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DPYODBC_VERSION=4.0.26 -UMAC_OS_X_VERSION_10_7 -I/usr/local/include -I/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/pyodbcdbg.cpp -o build/temp.macosx-10.14-x86_64-3.7/src/pyodbcdbg.o -Wno-write-strings -Wno-deprecated-declarations
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DPYODBC_VERSION=4.0.26 -UMAC_OS_X_VERSION_10_7 -I/usr/local/include -I/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/pyodbcmodule.cpp -o build/temp.macosx-10.14-x86_64-3.7/src/pyodbcmodule.o -Wno-write-strings -Wno-deprecated-declarations
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DPYODBC_VERSION=4.0.26 -UMAC_OS_X_VERSION_10_7 -I/usr/local/include -I/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/row.cpp -o build/temp.macosx-10.14-x86_64-3.7/src/row.o -Wno-write-strings -Wno-deprecated-declarations
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DPYODBC_VERSION=4.0.26 -UMAC_OS_X_VERSION_10_7 -I/usr/local/include -I/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/textenc.cpp -o build/temp.macosx-10.14-x86_64-3.7/src/textenc.o -Wno-write-strings -Wno-deprecated-declarations
    creating build/lib.macosx-10.14-x86_64-3.7
    clang++ -bundle -undefined dynamic_lookup -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk build/temp.macosx-10.14-x86_64-3.7/src/buffer.o build/temp.macosx-10.14-x86_64-3.7/src/cnxninfo.o build/temp.macosx-10.14-x86_64-3.7/src/connection.o build/temp.macosx-10.14-x86_64-3.7/src/cursor.o build/temp.macosx-10.14-x86_64-3.7/src/errors.o build/temp.macosx-10.14-x86_64-3.7/src/getdata.o build/temp.macosx-10.14-x86_64-3.7/src/params.o build/temp.macosx-10.14-x86_64-3.7/src/pyodbccompat.o build/temp.macosx-10.14-x86_64-3.7/src/pyodbcdbg.o build/temp.macosx-10.14-x86_64-3.7/src/pyodbcmodule.o build/temp.macosx-10.14-x86_64-3.7/src/row.o build/temp.macosx-10.14-x86_64-3.7/src/textenc.o -L/usr/local/lib -L/usr/lib -L/usr/local/lib -lodbc -o build/lib.macosx-10.14-x86_64-3.7/pyodbc.cpython-37m-darwin.so
    running install_lib
    copying build/lib.macosx-10.14-x86_64-3.7/pyodbc.cpython-37m-darwin.so -> /usr/local/Cellar/qgis-res/3.4.4/libexec/vendor/lib/python3.7/site-packages
    running install_egg_info
    running egg_info
    writing pyodbc.egg-info/PKG-INFO
    writing dependency_links to pyodbc.egg-info/dependency_links.txt
    writing top-level names to pyodbc.egg-info/top_level.txt
    reading manifest file 'pyodbc.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pyodbc.egg-info/SOURCES.txt'
    Copying pyodbc.egg-info to /usr/local/Cellar/qgis-res/3.4.4/libexec/vendor/lib/python3.7/site-packages/pyodbc-4.0.26-py3.7.egg-info
    running install_scripts
    writing list of installed files to '/private/tmp/pip-record-658ts54l/install-record.txt'
    Running setup.py install for pyodbc: finished with status 'done'
  Removing source in /private/tmp/pip-install-ahd2xirn/pyodbc
Successfully installed pyodbc-4.0.26

Try this:

brew install -s -v https://raw.githubusercontent.com/fjperini/homebrew-osgeo4mac/c5674696fc86b38d2a91337417beba74b56c60f2/Formula/qgis-res.rb --with-r --with-complete

Maybe the logs are not there, remember to do brew gist-logs qgis-res after the installation.

juanfcocontreras commented 5 years ago

I'm still getting the same error.

brew gist-logs qgis-res still complaints Error: Not Found, but I think I can find logs:

qgis-res.zip

By the way, if I download pyodbc directly and try to run the same command that is invoked in qgis-res, I get the same error:

> clang -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home/include/darwin -DPYODBC_VERSION=4.0.25 -UMAC_OS_X_VERSION_10_7 -I/usr/local/include -I/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/buffer.cpp -o build/temp.macosx-10.12-x86_64-3.7/src/buffer.o -Wno-write-strings -Wno-deprecated-declarations
In file included from src/buffer.cpp:12:
src/pyodbc.h:151:21: error: unknown type name 'BYTE'
bool pyodbc_realloc(BYTE** pp, size_t newlen);
                    ^
1 error generated.

I hope it helps you.

fjperini commented 5 years ago

Maybe it's related to your version of xcode and clang.

Clang: 9.0 build 900
Git: 2.20.1 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 1.8.0_202
macOS: 10.12.6-x86_64
CLT: 9.2.0.0.1.1510905681
Xcode: 9.2
XQuartz: 2.7.11 => /opt/X11

I will share a bottle generated in my machine in case you can not build ... it will help you to continue with the build of qgis.

Wait a few minutes while I upload the bottle.

juanfcocontreras commented 5 years ago

I filled an issue in pyodbc project, and it seems that I had an interaction with another library (libiodbc/3.52.12) by the file /usr/local/include/sqltypes.h.

I removed libiodbc and I'm trying to compile qgis-res again.

fjperini commented 5 years ago

In case you can not build, you can unzip https://github.com/fjperini/homebrew-osgeo4mac/releases/download/3.4.4/qgis-res-3.4.4.mojave.bottle.tar.gz in /usr/local/Cellar and link brew link qgis-res. It can be a temporary solution until you can check the build in a virtual machine with the characteristics of your system.

I'm using Mojave, and everything works correctly.

juanfcocontreras commented 5 years ago

I could build qgis-res, but I noticed that libiodbc is required by qgis. BYTES type is missing in the file sqltypes.h of libiodbc.

The problem was that I installed qgis without 3d-map support (and it installed libiodbc), and when I tried to compile qgis-res --with-r --with-complete qgis-res, libiodbc and unixodbc had conflicts with their links.

So I think it's necessary to do:

brew link --overwrite unixodbc
fjperini commented 5 years ago

It really should not be a problem, but you can do it if that solves the inconvenience you're having.

I think it would be best to remove libiodbc as a dependency of qgis, I'll check this later.

If you managed to build. qgis-res, you should not have problems when building qgis.

If after installing both you have problems with libiodbc, you can do this:

brew uninstall --ignore-dependencies libiodbc

brew unlink unixodbc && brew link --force unixodbc
juanfcocontreras commented 5 years ago

Thanks @fjperini!

Unfortunatly, I still have issues when I try to build qgis:

...
-- Installing: /usr/local/Cellar/qgis/3.6.0/QGIS.app/Contents/MacOS/../Resources/python/qgis/PyQt/Qt.py
-- Installing: /usr/local/Cellar/qgis/3.6.0/QGIS.app/Contents/MacOS/../Resources/python/qgis/PyQt/sip.py
-- Installing: /usr/local/Cellar/qgis/3.6.0/QGIS.app/Contents/MacOS/../Resources/python/qgis/PyQt/uic/__init__.py
-- Installing: /usr/local/Cellar/qgis/3.6.0/QGIS.app/Contents/MacOS/../Resources/python/qgis/PyQt/uic/pyuic.py
-- Installing: /usr/local/Cellar/qgis/3.6.0/QGIS.app/Contents/MacOS/../Resources/python/qgis/PyQt/uic/properties.py
-- Installing: /usr/local/Cellar/qgis/3.6.0/QGIS.app/Contents/MacOS/../Resources/python/qgis/testing/__init__.py
-- Installing: /usr/local/Cellar/qgis/3.6.0/QGIS.app/Contents/MacOS/../Resources/python/qgis/testing/mocked.py
-- Installing: /usr/local/Cellar/qgis/3.6.0/QGIS.app/Contents/MacOS/../Resources/python/qgis/processing/__init__.py
-- Installing: /usr/local/Cellar/qgis/3.6.0/QGIS.app/Contents/MacOS/../Resources/python/qgis/processing/algfactory.py
-- Updating QGIS library paths...
QFSFileEngine::open: No file name specified
Error: An exception occurred within a child process:
  Errno::ENOENT: No such file or directory @ rb_sysopen - /usr/local/Cellar/qgis/3.6.0/QGIS.app/Contents/Resources/python/plugins/processing_r/processing/provider.py

Please, find attached verbose building logs:

logs.zip

Do you have any idea of what is wrong?

Thanks!

fjperini commented 5 years ago

@juanfcocontreras I will check it!

fjperini commented 5 years ago

@juanfcocontreras I will build the bottle of qgis-res with all the options. So it will not be necessary for them to build.

juanfcocontreras commented 5 years ago

Thanks @fjperini, but now I have the problem compiling qgis, not qgis-res. I think qgis-res was built with all the options properly. Do you think the new bottle for qgis-res will solve the qgis compilation?

Thanks again for your interest!

fjperini commented 5 years ago

If you have already built qgis-res, now the problem must be different.

I will check your logs.

fjperini commented 5 years ago

related to: processing_r/processing/provider.py

it must be that something changed in the plugin

fjperini commented 5 years ago

That's right, it was updated. I will solve it quickly, just wait for qgis-res to be built in Circle CI to apply the changes in qgis.

We close this issue, in the course of the day the changes will be merged and you will be able to install qgis without problems.

juanfcocontreras commented 5 years ago

Great! Thank you so much!

juanfcocontreras commented 5 years ago

Hi @fjperini!

I've just installed qgis-res from the new bottle, and I still have the same issue when building qgis :-(

Did I do something wrong?

Error: An exception occurred within a child process:
  Errno::ENOENT: No such file or directory @ rb_sysopen - /usr/local/Cellar/qgis/3.6.0/QGIS.app/Contents/Resources/python/plugins/processing_r/processing/provider.py
fjperini commented 5 years ago

I already found the error, updating the formula.

fjperini commented 5 years ago

@juanfcocontreras Now you can install qgis, qgis-res no longer requires using flags.

juanfcocontreras commented 5 years ago

Thanks @fjperini! I finally got qgis with 3d map support installed! I got a warning, but I hope it's not important:

Warning: The post-install step did not complete successfully
You can try again using `brew postinstall osgeo/osgeo4mac/qgis`

No matter I try brew postinstall osgeo/osgeo4mac/qgis, I get the same message once again.

fjperini commented 5 years ago

@juanfcocontreras I'll check that, it's not a problem.

You may have had some optional dependency installed but you did not add the flag and in postinstall it recognized that it was installed and tried to configure it.

I will remove the condition that checks if the dependency is linked, that only configure if it was built with the indicated flag.