[QGIS-Developer] A new way to build QGIS and all its dependencies from scratch in Linux and MacOS
sinan bulut
sbulutw at gmail.com
Tue Apr 14 17:11:01 PDT 2020
Hi all.
I am a volunteer contributor for the software project [Spack](
https://github.com/spack), an HPC package manager. Using this tool, it is
possible to build QGIS and all of its direct and indirect dependencies from
scratch using a single line of command as shown below. I thought this might
be useful to some, especially to QGIS developers, and accordingly it might
be considered to be added to the list of QGIS build/installation methods.
Once Spack is setup like:
$ git clone https://github.com/spack/spack.git
$ source spack/share/spack/setup-env.sh
One can build QGIS and all its dependencies via a single line of command
like
$ spack install qgis
In practice, one might need to issue a command involving some hints for
dependency resolution:
$ spack install qgis ^gdal at 2.4.2 ^libgeotiff at 1.4.3 ^py-pyproj at 1.9.6
^netcdf-c+mpi ^mesa~llvm
This will not be necessary in the upcoming releases of Spack.
Once it is built, one can use the package like
$ spack find qgis
==> 7 installed packages
-- linux-centos7-skylake / gcc at 7.4.0 ----------------------------
qgis at 3.8.1 qgis at 3.10.3 qgis at 3.10.3 qgis at 3.10.3 qgis at 3.10.4
-- linux-centos7-x86_64 / gcc at 8.2.0 -----------------------------
qgis at 3.8.1 qgis at 3.8.1
$ spack load qgis at 3.10.4
$ which qgis
/mnt/local/spack/opt/spack/linux-centos7-skylake/gcc-7.4.0/qgis-3.10.4-hc7uhdochwjmx4v2dzy2zzewit2vr2ov/bin/qgis
Hope this will be useful to some.
Sinan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20200414/2740bfa0/attachment.html>
More information about the QGIS-Developer
mailing list