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 ^[email protected] ^[email protected] ^[email protected]
^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 / [email protected] ----------------------------
[email protected] [email protected] [email protected] [email protected] [email protected]
-- linux-centos7-x86_64 / [email protected] -----------------------------
[email protected] [email protected]
$ spack load [email protected]
$ 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
_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer