Skip to content

Instantly share code, notes, and snippets.

@janxkoci
Last active May 28, 2025 12:23
Show Gist options
  • Save janxkoci/f581c68751e19a9684524f2a19eefd48 to your computer and use it in GitHub Desktop.
Save janxkoci/f581c68751e19a9684524f2a19eefd48 to your computer and use it in GitHub Desktop.
conda env for compiling GRASS GIS
name: grass
channels:
- conda-forge
dependencies:
- proj
- gdal
- parallel # for parallelization
- flex
- bison # yacc parser
- pdal
- python-pdal # not sure if needed
@janxkoci
Copy link
Author

janxkoci commented May 28, 2025

https://grasswiki.osgeo.org/wiki/Compile_and_Install

Example configuration:

./configure \
         --with-cxx \
         --with-sqlite \
         --with-python \
         --with-geos \
         --with-gdal=/usr/bin/gdal-config \
         --with-cairo --with-cairo-ldflags=-lfontconfig \
         --with-freetype \
         --with-freetype-includes=/usr/include/freetype2 \
         --with-proj --with-proj-share=/usr/share/proj

Trying the following, but still fails finding PDAL:

CFLAGS="-O2"` ./configure --with-cxx --with-sqlite --with-python --with-geos --with-gdal=/storage/brno2/home/jena/miniconda3/envs/grass/bin/gdal-config --with-pdal=/storage/brno2/home/jena/miniconda3/envs/grass/bin/pdal-config

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