Skip to content

Instantly share code, notes, and snippets.

@codebutler
Last active August 23, 2019 10:10
Show Gist options
  • Select an option

  • Save codebutler/bdac680b5c9405d7c7fdebbcdb99d5bf to your computer and use it in GitHub Desktop.

Select an option

Save codebutler/bdac680b5c9405d7c7fdebbcdb99d5bf to your computer and use it in GitHub Desktop.
Building QGIS master on MacOS

Buiding QGIS master on MacOS

How to build

$ brew tap codebutler/brew
$ brew install codebutler/brew/gdal
$ brew install codebutler/brew/qtkeychain
$ brew install bison geos libzip qca python3 pyqt qscintilla2 gsl qwt spatialindex libpq
$ pip3 install six
$ git clone https://github.com/qgis/QGIS.git
$ cd QGIS
$ mkdir build-master
$ cd build-master
$ cmake ../CMakeLists.txt -DBISON_EXECUTABLE=/usr/local/opt/bison/bin -DWITH_QTWEBKIT=false -DCMAKE_PREFIX_PATH=/usr/local/opt/qt
$ cd ..
$ make

Python packages needed at runtime:

$ pip3 install psycopg2
$ pip3 install owslib
$ pip3 install jinja2
$ pip3 install pygments
$ pip3 install gdal
$ pip3 install pyyaml
$ pip3 install numpy
@mkatychev

Copy link
Copy Markdown

-DBISON_EXECUTABLE=/usr/local/opt/bison/bin needs to be changed to -DBISON_EXECUTABLE=/usr/local/opt/bison/bin/bison

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment