Commit https://github.com/amyspark/gmic/commit/7b0e1f74199f8f605b69a759a2135077af7dd94c defines -Dgmic_core unconditionally. This breaks build against system gmic, as the gmic.h heades expects the gmic.cpp source file to be present at build time. In file included from /build/krita-plugin-gmic/src/gmic-3.2.1.1-patched/gmic-qt/src/PersistentMemory.cpp:26: /usr/include/gmic.h:191:21: fatal error: gmic.cpp: No such file or directory 191 | #define cimg_plugin "gmic.cpp" | ^~~~~~~~~~ compilation terminated.
This is an upstream bug: https://github.com/c-koi/gmic-qt/commit/f0d9d8acd10b89f9d28a49227f3c70ff1f2e18a5 Please file it with Sébastien, I'll add a patch in the meanwhile.
Antonio, can you check if https://github.com/amyspark/gmic/pull/5 makes it work?