homebrew-osgeo4mac: qgis-res compilation error

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

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 22

Most upvoted comments

@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.

Great! Thank you so much!

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

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.