G'mic for Gimp 2.10

Gmic & gimp 2.10 from flatpak on debian 9 stable. Partial solution.

Tipographic convention:

input in terminal

output in terminal

This work for me but require a gtk version of gmic (available 1 june, no available now)

download org.gimp.GIMP.flatpakref
from https://www.gimp.org/downloads/ (the " Install GIMP flatpak" button)

download gmic_gimp2.10_gtk_2.2.4_pre_debian_sid_amd64.zip
from ???

flatpak --user install org.gimp.GIMP.flatpakref
flatpak  run org.gimp.GIMP
cp gmic_gimp2.10_gtk_2.2.4_pre_debian_sid_amd64.zip ~/.var/app/org.gimp.GIMP/config/GIMP/2.10/plug-ins/
cd ~/.var/app/org.gimp.GIMP/config/GIMP/2.10/plug-ins
unzip gmic_gimp2.10_gtk_2.2.4_pre_debian_sid_amd64.zip
flatpak  run org.gimp.GIMP

/home/johan/.var/app/org.gimp.GIMP/config/GIMP/2.10/plug-ins/gmic_gimp_gtk: error while loading shared libraries: libfribidi.so.0: cannot open shared object file: No such file or directory

cd ~/.local/share/flatpak/runtime/org.gnome.Platform/x86_64/3.28/active/files/lib
cp -i /usr/lib/x86_64-linux-gnu/libfribidi.so.0*  ./
flatpak  run org.gimp.GIMP

/home/johan/.var/app/org.gimp.GIMP/config/GIMP/2.10/plug-ins/gmic_gimp_gtk: error while loading shared libraries: libfftw3.so.3: cannot open shared object file: No such file or directory

cp -i /usr/lib/x86_64-linux-gnu/libfftw3* ./

Now gmic run on gimp. I test this solution from 2 weeks, no problem.

For qt gmic (the only available now on gmic site), this trick does not work: the plugin wants a version of libqt upper the version in debian stable, I try the version in unstable (download the package extract the lib with dpkg -x and copy, but the lib want an upper version of glibc).

I try the flatpak libqt (and fail)

flatpak --user install flathub org.kde.Platform//5.11

but flatpak’s gimp don’t see other runtime

I try also to copy qtlib from kde runtime to gnome runtime.

cp -ai  .local/share/flatpak/runtime/org.kde.Platform/x86_64/5.11/active/files/lib/libQt5Widgets.* local/share/flatpak/runtime/org.gnome.Platform/x86_64/3.28/active/files/lib/
cp -ai  .local/share/flatpak/runtime/org.kde.Platform/x86_64/5.11/active/files/lib/libQt5Gui.* .local/share/flatpak/runtime/org.gnome.Platform/x86_64/3.28/active/files/lib/
cp -ai  .local/share/flatpak/runtime/org.kde.Platform/x86_64/5.11/active/files/lib/libQt5Network.* .local/share/flatpak/runtime/org.gnome.Platform/x86_64/3.28/active/files/lib/
cp -ai  .local/share/flatpak/runtime/org.kde.Platform/x86_64/5.11/active/files/lib/libQt5Core.* .local/share/flatpak/runtime/org.gnome.Platform/x86_64/3.28/active/files/lib/
cp -ai  .local/share/flatpak/runtime/org.kde.Platform/x86_64/5.11/active/files/lib/libxcb* .local/share/flatpak/runtime/org.gnome.Platform/x86_64/3.28/active/files/lib/

gimp see the gimp-qt plugin but the plugin crash.

The output message:
with gtk (plugin OK):
Missing fast-path babl conversion detected, Implementing missing babl fast paths
accelerates GEGL, GIMP and other software using babl, warnings are printed on
first occurance of formats used where a conversion has to be synthesized
programmatically by babl based on format description
WARNING missing babl fast path(s): “R’G’B’ double” to “CIE Lab double”
/home/johan/.var/app/org.gimp.GIMP/config/GIMP/2.10/plug-ins/gmic_gimp_gtk: /lib/libcurl.so.4: no version information available (required by /home/johan/.var/app/org.gimp.GIMP/config/GIMP/2.10/plug-ins/gmic_gimp_gtk)

with qt (plugin crash):
Missing fast-path babl conversion detected, Implementing missing babl fast paths
accelerates GEGL, GIMP and other software using babl, warnings are printed on
first occurance of formats used where a conversion has to be synthesized
programmatically by babl based on format description
WARNING missing babl fast path(s): “R’G’B’ double” to “CIE Lab double”
/home/johan/.var/app/org.gimp.GIMP/config/GIMP/2.10/plug-ins/gmic_gimp_qt: /lib/libcurl.so.4: no version information available (required by /home/johan/.var/app/org.gimp.GIMP/config/GIMP/2.10/plug-ins/gmic_gimp_qt)
qt.qpa.plugin: Could not find the Qt platform plugin “xcb” in “”
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
/home/johan/.var/app/org.gimp.GIMP/config/GIMP/2.10/plug-ins/gmic_gimp_qt: fatal error: Aborted