c-koi/gmic-qt

Cannot build with Gimp3

Closed this issue · 2 comments

Latest Gimp (2.99.16):

qmake CONFIG+=release GMIC_PATH=/usr/src/RPM/BUILD/gmic-3.2.6/src PRERELEASE= GMIC_DYNAMIC_LINKING=off HOST=gimp3 gmic_qt.pro && /usr/bin/make

src/Host/Gimp/host_gimp.cpp: In function ‘void gmic_qt_init(GmicQtPlugin*)’:
src/Host/Gimp/host_gimp.cpp:137:41: warning: unused parameter ‘gmic_qt’ [-Wunused-parameter]
  137 | static void gmic_qt_init(GmicQtPlugin * gmic_qt) {}
      |                          ~~~~~~~~~~~~~~~^~~~~~~
src/Host/Gimp/host_gimp.cpp: In function ‘void GmicQtHost::getLayersExtent(int*, int*, GmicQt::InputMode)’:
src/Host/Gimp/host_gimp.cpp:483:33: error: ‘gimp_image_get_active_layer’ was not declared in this scope; did you mean ‘gimp_image_remove_layer’?
  483 |   _GimpLayerPtr activeLayerID = gimp_image_get_active_layer(gmic_qt_gimp_image_id);
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 gimp_image_remove_layer
src/Host/Gimp/host_gimp.cpp: In function ‘void GmicQtHost::getCroppedImages(gmic_library::gmic_list<float>&, gmic_library::gmic_list<char>&, double, double, double, double, GmicQt::InputMode)’:
src/Host/Gimp/host_gimp.cpp:551:35: error: ‘gimp_image_get_active_layer’ was not declared in this scope; did you mean ‘gimp_image_remove_layer’?
  551 |   _GimpLayerPtr active_layer_id = gimp_image_get_active_layer(gmic_qt_gimp_image_id);
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                   gimp_image_remove_layer
src/Host/Gimp/host_gimp.cpp: In function ‘void GmicQtHost::outputImages(gmic_library::gmic_list<float>&, const gmic_library::gmic_list<char>&, GmicQt::OutputMode)’:
src/Host/Gimp/host_gimp.cpp:880:37: error: ‘gimp_image_get_active_layer’ was not declared in this scope; did you mean ‘gimp_image_remove_layer’?
  880 |     _GimpLayerPtr active_layer_id = gimp_image_get_active_layer(gmic_qt_gimp_image_id);
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                     gimp_image_remove_layer
src/Host/Gimp/host_gimp.cpp:951:11: error: ‘gimp_image_set_active_layer’ was not declared in this scope; did you mean ‘gimp_image_unset_active_channel’?
  951 |           gimp_image_set_active_layer(gmic_qt_gimp_image_id, active_layer_id);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |           gimp_image_unset_active_channel
src/Host/Gimp/host_gimp.cpp:953:11: error: ‘gimp_image_set_active_layer’ was not declared in this scope; did you mean ‘gimp_image_unset_active_channel’?
  953 |           gimp_image_set_active_layer(gmic_qt_gimp_image_id, top_layer_id);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |           gimp_image_unset_active_channel
src/Host/Gimp/host_gimp.cpp:959:37: error: ‘gimp_image_get_active_layer’ was not declared in this scope; did you mean ‘gimp_image_remove_layer’?
  959 |     _GimpLayerPtr active_layer_id = gimp_image_get_active_layer(gmic_qt_gimp_image_id);
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                     gimp_image_remove_layer
src/Host/Gimp/host_gimp.cpp: In function ‘GList* gmic_qt_query(GimpPlugIn*)’:
src/Host/Gimp/host_gimp.cpp:1119:43: warning: unused parameter ‘plug_in’ [-Wunused-parameter]
 1119 | static GList * gmic_qt_query(GimpPlugIn * plug_in)
      |                              ~~~~~~~~~~~~~^~~~~~~

This specific breakage was fixed a while ago.

See #163 (duplicate, fixed)