STATUS UPDATE

>---> Tried to compile plugin via:
valac --pkg=gimp-3.0 --pkg=gimp-ui-3.0 goat-exercise-vala.vala

>---> Got the following error:
In file included from goat-exercise-vala.vala.c:30:
C:/msys64/mingw64/include/glib-2.0/glib/gi18n-lib.h:27:2: error:
#error You must define GETTEXT_PACKAGE before including gi18n-lib.h.
Did you forget to include config.h?
   27 | #error You must define GETTEXT_PACKAGE before including
gi18n-lib.h.  Did you forget to include config.h?

>---> Tried again:
valac -X -DGETTEXT_PACKAGE="..." --pkg=gimp-3.0 --pkg=gimp-ui-3.0
goat-exercise-vala.vala

>---> Now getting more than a screen-full of warnings and errors.

>---> First few lines of the error report:
goat-exercise-vala.vala.c: In function 'goat_real_create_procedure':
goat-exercise-vala.vala.c:156:112: warning: passing argument 4 of
'gimp_image_procedure_new' from incompatible pointer type
[-Wincompatible-pointer-types]
  156 |  _tmp0_ = (GimpImageProcedure*) gimp_image_procedure_new
((GimpPlugIn*) self, name, GIMP_PDB_PROC_TYPE_PLUGIN,
_goat_run_gimp_run_image_func, g_object_ref (self), g_object_unref);
      |

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |
                                                |
      |
                                                GimpValueArray *
(*)(GimpProcedure *, GimpRunMode,  GimpImage *, GimpDrawable *,
GimpValueArray *, void *)
In file included from C:/msys64/mingw64/include/libgimp/gimp.h:49,
                 from goat-exercise-vala.vala.c:27:
C:/msys64/mingw64/include/libgimp/gimpimageprocedure.h:86:66: note:
expected 'GimpRunImageFunc' {aka 'GimpValueArray * (*)(GimpProcedure
*, GimpRunMode,  GimpImage *, GimpDrawable *, const GimpValueArray *,
void *)'} but argument is of type 'GimpValueArray * (*)(GimpProcedure
*, GimpRunMode,  GimpImage *, GimpDrawable *, GimpValueArray *, void
*)'
   86 |
GimpRunImageFunc  run_func,
      |
~~~~~~~~~~~~~~~~~~^~~~~~~~

>---> Full error report shall be shared as attachment in the following email.

>---> The auto-generated C code file shall be shared as attachment in the 
>following email.


I'm not quite sure how to proceed further. If anyone knows how to fix
this, please do share your expert-opinion.

Thanks.
_______________________________________________
gimp-developer-list mailing list
List address:    gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list

Reply via email to