1. You are using the Gimp 2.10 flatpack. You can not use that for compiling gimp plugins
2. You are using the Gimp 2.10 flatpack. That does not support QT applications. gmic_gimp_qt will not work
Alternatives to the flatpack.
Gimp 2.10.10 from the PPA see
https://launchpad.net/~otto-kesselgulas ... buntu/gimp for details about adding to the repo.
Then get the gmic_gimp_qt plugin from
https://gmic.eu/files/linux/gmic_gimp2. ... _amd64.zip Unzip, put in ~/.config/GIMP/2.10/plug-ins
Lots of dependencies so run Gimp from a terminal with the --verbose switch to see what you need. typically libcurl, libfftw3, libqt5core* libqt5widgets5* there might be more.
or
Use an appimage:
https://github.com/aferrero2707/gimp-appimage/releases/ there are plugins including gmic for that
https://github.com/aferrero2707/gimp-pl ... continuousThe snag I found (apart from unpacking several thousand files to /tmp every use) is it is not totally compatible with Ubuntu. It is very good, but first time I used one of my own plugins it would not run it.