gmic
gmic copied to clipboard
gmic-gimp/gmic-qt 3.1.5: gimp_image_get_active_layer’ was not declared
OS: Slackware current GIMP: 2.99.12 gmic: 3.1.5
gmic-gimp/gmic-qt 3.1.5: -DGMIC_QT_HOST=gimp3 failed
/tmp/snuk/gmic-3.1.5/gmic-qt/src/Host/Gimp/host_gimp.cpp: In function ‘void GmicQtHost::getLayersExtent(int*, int*, GmicQt::InputMode)’:
/tmp/snuk/gmic-3.1.5/gmic-qt/src/Host/Gimp/host_gimp.cpp:495:33: error: ‘gimp_image_get_active_layer’ was not declared in this scope; did you mean ‘gimp_image_remove_layer’?
495 | _GimpLayerPtr activeLayerID = gimp_image_get_active_layer(gmic_qt_gimp_image_id);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| gimp_image_remove_layer
/tmp/snuk/gmic-3.1.5/gmic-qt/src/Host/Gimp/host_gimp.cpp: In function ‘void GmicQtHost::getCroppedImages(cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, double, double, double, double, GmicQt::InputMode)’:
/tmp/snuk/gmic-3.1.5/gmic-qt/src/Host/Gimp/host_gimp.cpp:563:35: error: ‘gimp_image_get_active_layer’ was not declared in this scope; did you mean ‘gimp_image_remove_layer’?
563 | _GimpLayerPtr active_layer_id = gimp_image_get_active_layer(gmic_qt_gimp_image_id);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| gimp_image_remove_layer
/tmp/snuk/gmic-3.1.5/gmic-qt/src/Host/Gimp/host_gimp.cpp: In function ‘void GmicQtHost::outputImages(cimg_library::CImgList<float>&, const cimg_library::CImgList<char>&, GmicQt::OutputMode)’:
/tmp/snuk/gmic-3.1.5/gmic-qt/src/Host/Gimp/host_gimp.cpp:892:37: error: ‘gimp_image_get_active_layer’ was not declared in this scope; did you mean ‘gimp_image_remove_layer’?
892 | _GimpLayerPtr active_layer_id = gimp_image_get_active_layer(gmic_qt_gimp_image_id);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| gimp_image_remove_layer
/tmp/snuk/gmic-3.1.5/gmic-qt/src/Host/Gimp/host_gimp.cpp:963:11: error: ‘gimp_image_set_active_layer’ was not declared in this scope; did you mean ‘gimp_image_unset_active_channel’?
963 | gimp_image_set_active_layer(gmic_qt_gimp_image_id, active_layer_id);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| gimp_image_unset_active_channel
/tmp/snuk/gmic-3.1.5/gmic-qt/src/Host/Gimp/host_gimp.cpp:965:11: error: ‘gimp_image_set_active_layer’ was not declared in this scope; did you mean ‘gimp_image_unset_active_channel’?
965 | gimp_image_set_active_layer(gmic_qt_gimp_image_id, top_layer_id);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| gimp_image_unset_active_channel
/tmp/snuk/gmic-3.1.5/gmic-qt/src/Host/Gimp/host_gimp.cpp:971:37: error: ‘gimp_image_get_active_layer’ was not declared in this scope; did you mean ‘gimp_image_remove_layer’?
971 | _GimpLayerPtr active_layer_id = gimp_image_get_active_layer(gmic_qt_gimp_image_id);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| gimp_image_remove_layer
gmake[2]: *** [CMakeFiles/gmic_gimp_qt.dir/build.make:1230: CMakeFiles/gmic_gimp_qt.dir/src/Host/Gimp/host_gimp.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:84: CMakeFiles/gmic_gimp_qt.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
Hello. That's interesting thanks. To date, we don't officially support versions of the plug-in for GIMP 2.99 yet, as the plug-in API is changing all the time. Hopefully, someone will be able to patch the code to make it work for upcoming GIMP 3.0.
This can be closed as a duplicate of https://github.com/c-koi/gmic-qt/issues/163