The source code of G'MIC is shared between several github repositories with public access.
The code from these repositories are intended to be work-in-progress though,
so we don't recommend using them to access the source code, if you just want to compile the various interfaces of the G'MIC project.
Its is recommended to get the source code from
the latest .tar.gz archive instead.
Here are the instructions to compile G'MIC on a fresh installation of Debian (or Ubuntu).
It should not be much harder for other distros. First you need to install all the required tools and libraries:
$ sudo apt install git build-essential libgimp2.0-dev libcurl4-openssl-dev libfftw3-dev libtiff-dev libjpeg-dev libopenexr-dev libwebp-dev qtbase5-dev qttools5-dev-tools
Then, get the G'MIC source :
You are now ready to compile the G'MIC interfaces:
- gmic (command-line tool),
- gmic_gimp_qt (plug-in for GIMP),
- ZArt and
- libgmic (G'MIC C++ library).
Just pick your choice:
$ make cli # Compile command-line interface
$ make gimp # Compile plug-in for GIMP
$ make lib # Compile G'MIC library files
$ make zart # Compile ZArt
$ make all # Compile all of the G'MIC interfaces
and go out for a long drink (the compilation takes time).
Note that compiling issues (compiler segfault) may happen with older versions of g++ (4.8.1 and 4.8.2).
If you encounter this kind of errors, you probably have to disable the support of OpenMP
in G'MIC to make it work, by compiling it with:
make OPENMP_CFLAGS="" OPENMP_LIBS=""
Also, please remember that the source code in the git repository
is constantly under development and may be a bit unstable, so do not hesitate to report bugs if you encounter any.