Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save suricactus/29293e430092013777d11c6b127f5edc to your computer and use it in GitHub Desktop.

Select an option

Save suricactus/29293e430092013777d11c6b127f5edc to your computer and use it in GitHub Desktop.
Building PCRaster on Ubuntu

What follows are the steps I took to build PCRaster on Fedora (34) from source. I chose to build from source because I didn't want to use the conda installer and I could not find a stand alone package.

The process below assumes that you have a working QGIS build environment since some of the PCRaster dependencies are provided by the QGIS dependency tree too.

git clone git@github.com:pcraster/pcraster.git
cd pcraster/
mkdir build
cd build/
sudo apt install boost-devel qt5-qtcharts-devel xerces-c-devel ncurses-devel
ccmake -GNinja ..
ninja
sudo ninja install

To produce a debug build, replace the ccmake command with:

ccmake -GNinja -DCMAKE_BUILD_TYPE=Debug ..

After doing that, start QGIS and install the PCRaster QGIS plugin.

Once installed, you should see a new PCRaster group in your processing panel:

pcraster

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