I’d love to try it but I’m not finding gmic.cpp in my sources.
I went to the gmic-master source tree in the git links you sent and modified the code as suggested, but then the commands you gave to build it do not work.
Sorry but it seems I need some hand-holding, as I don’t understand how to build it.