missing dependencies for kimageformats
Hello,
I used following commands to install flatpak gwenview:
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --if-not-exists kdeapps --from https://distribute.kde.org/kdeapps.flatpakrepo
flatpak install kdeapps org.kde.gwenview
I observed that not all plug-in from kimageformats are available. Following plug-ins were installed in /var/lib/flatpak/runtime/org.kde.Platform/x86_64/5.15-21.08/8184db77dbe46028a5efc42980d07b6d91c4dcf853be7cd5d3d98d9893ca297d/files/lib/plugins/imageformats
kimg_pcx.so
kimg_ani.so
kimg_psd.so
kimg_ora.so
kimg_tga.so
kimg_kra.so
kimg_xcf.so
kimg_pic.so
kimg_rgb.so
kimg_ras.so
kimg_eps.so
kimg_hdr.so
But kimg_avif.so and kimg_jxl.so (kimg_heif.so is optional) are missing.
In order to build kimg_avif.so, there is a need of libavif. libavif needs libaom.so.3 and libdav1d.so.5, they are already available. cmake options should be used to configure libavif: -DAVIF_CODEC_AOM=ON -DAVIF_CODEC_DAV1D=ON
In order to build kimg_jxl.so, we need libjxl. Here is info how we build it in GIMP: https://github.com/flathub/org.gimp.GIMP/blob/e29690924661d94a77e58d138f273d40bfcbe184/org.gimp.GIMP.json#L619
I'd like to ask if we can add libavif, libjxl and where exactly in org.kde.Sdk.json.in
would be the best place to insert them (for example as modules under kimageformats?).