[Gimp-developer] How to compile a vala plugin on Windows pc?
Pen Guin via gimp-developer-list <[email protected]> Tue, 5 Jan 2021 22:22:00 -0800
| Newsgroups | gmane.comp.video.gimp.devel |
|---|---|
| Message-ID | <CANT2YtG5trQN3nk0aT-iaBCK4Drwma+_3WQdMUtoUxXKaMDObw@mail.gmail.com> |
Error Report Attached. _______________________________________________ gimp-developer-list mailing list List address: [email protected] List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list
gimp_dev_list_email_reply_bbb_error_attachment.txt
(text/plain, 10.8 KB)
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,
| ~~~~~~~~~~~~~~~~~~^~~~~~~~
goat-exercise-vala.vala.c: In function 'goat_run':
<command-line>: error: expected expression before '...' token
C:/msys64/mingw64/include/glib-2.0/glib/gi18n-lib.h:30:42: note: in expansion of macro 'GETTEXT_PACKAGE'
30 | #define _(String) ((char *) g_dgettext (GETTEXT_PACKAGE, String))
| ^~~~~~~~~~~~~~~
goat-exercise-vala.vala.c:252:43: note: in expansion of macro '_'
252 | _tmp0_ = (GimpDialog*) gimp_dialog_new (_ ("Exercise a goat (Vala)"), PLUG_IN_ROLE, NULL, GTK_DIALOG_USE_HEADER_BAR, _gimp_standard_help_func_gimp_help_func, PLUG_IN_PROC, _ ("_Cancel"), GTK_RESPONSE_CANCEL, _ ("_Source"), GTK_RESPONSE_APPLY, _ ("_Run"), GTK_RESPONSE_OK, NULL, NULL);
| ^
In file included from goat-exercise-vala.vala.c:30:
C:/msys64/mingw64/include/glib-2.0/glib/gi18n-lib.h:30:30: error: too few arguments to function 'g_dgettext'
30 | #define _(String) ((char *) g_dgettext (GETTEXT_PACKAGE, String))
| ^~~~~~~~~~
goat-exercise-vala.vala.c:252:43: note: in expansion of macro '_'
252 | _tmp0_ = (GimpDialog*) gimp_dialog_new (_ ("Exercise a goat (Vala)"), PLUG_IN_ROLE, NULL, GTK_DIALOG_USE_HEADER_BAR, _gimp_standard_help_func_gimp_help_func, PLUG_IN_PROC, _ ("_Cancel"), GTK_RESPONSE_CANCEL, _ ("_Source"), GTK_RESPONSE_APPLY, _ ("_Run"), GTK_RESPONSE_OK, NULL, NULL);
| ^
In file included from C:/msys64/mingw64/include/glib-2.0/glib.h:49,
from goat-exercise-vala.vala.c:26:
C:/msys64/mingw64/include/glib-2.0/glib/ggettext.h:41:14: note: declared here
41 | const gchar *g_dgettext (const gchar *domain,
| ^~~~~~~~~~
<command-line>: error: expected expression before '...' token
C:/msys64/mingw64/include/glib-2.0/glib/gi18n-lib.h:30:42: note: in expansion of macro 'GETTEXT_PACKAGE'
30 | #define _(String) ((char *) g_dgettext (GETTEXT_PACKAGE, String))
| ^~~~~~~~~~~~~~~
goat-exercise-vala.vala.c:252:175: note: in expansion of macro '_'
252 | _tmp0_ = (GimpDialog*) gimp_dialog_new (_ ("Exercise a goat (Vala)"), PLUG_IN_ROLE, NULL, GTK_DIALOG_USE_HEADER_BAR, _gimp_standard_help_func_gimp_help_func, PLUG_IN_PROC, _ ("_Cancel"), GTK_RESPONSE_CANCEL, _ ("_Source"), GTK_RESPONSE_APPLY, _ ("_Run"), GTK_RESPONSE_OK, NULL, NULL);
| ^
In file included from goat-exercise-vala.vala.c:30:
C:/msys64/mingw64/include/glib-2.0/glib/gi18n-lib.h:30:30: error: too few arguments to function 'g_dgettext'
30 | #define _(String) ((char *) g_dgettext (GETTEXT_PACKAGE, String))
| ^~~~~~~~~~
goat-exercise-vala.vala.c:252:175: note: in expansion of macro '_'
252 | _tmp0_ = (GimpDialog*) gimp_dialog_new (_ ("Exercise a goat (Vala)"), PLUG_IN_ROLE, NULL, GTK_DIALOG_USE_HEADER_BAR, _gimp_standard_help_func_gimp_help_func, PLUG_IN_PROC, _ ("_Cancel"), GTK_RESPONSE_CANCEL, _ ("_Source"), GTK_RESPONSE_APPLY, _ ("_Run"), GTK_RESPONSE_OK, NULL, NULL);
| ^
In file included from C:/msys64/mingw64/include/glib-2.0/glib.h:49,
from goat-exercise-vala.vala.c:26:
C:/msys64/mingw64/include/glib-2.0/glib/ggettext.h:41:14: note: declared here
41 | const gchar *g_dgettext (const gchar *domain,
| ^~~~~~~~~~
<command-line>: error: expected expression before '...' token
C:/msys64/mingw64/include/glib-2.0/glib/gi18n-lib.h:30:42: note: in expansion of macro 'GETTEXT_PACKAGE'
30 | #define _(String) ((char *) g_dgettext (GETTEXT_PACKAGE, String))
| ^~~~~~~~~~~~~~~
goat-exercise-vala.vala.c:252:211: note: in expansion of macro '_'
252 | _tmp0_ = (GimpDialog*) gimp_dialog_new (_ ("Exercise a goat (Vala)"), PLUG_IN_ROLE, NULL, GTK_DIALOG_USE_HEADER_BAR, _gimp_standard_help_func_gimp_help_func, PLUG_IN_PROC, _ ("_Cancel"), GTK_RESPONSE_CANCEL, _ ("_Source"), GTK_RESPONSE_APPLY, _ ("_Run"), GTK_RESPONSE_OK, NULL, NULL);
| ^
In file included from goat-exercise-vala.vala.c:30:
C:/msys64/mingw64/include/glib-2.0/glib/gi18n-lib.h:30:30: error: too few arguments to function 'g_dgettext'
30 | #define _(String) ((char *) g_dgettext (GETTEXT_PACKAGE, String))
| ^~~~~~~~~~
goat-exercise-vala.vala.c:252:211: note: in expansion of macro '_'
252 | _tmp0_ = (GimpDialog*) gimp_dialog_new (_ ("Exercise a goat (Vala)"), PLUG_IN_ROLE, NULL, GTK_DIALOG_USE_HEADER_BAR, _gimp_standard_help_func_gimp_help_func, PLUG_IN_PROC, _ ("_Cancel"), GTK_RESPONSE_CANCEL, _ ("_Source"), GTK_RESPONSE_APPLY, _ ("_Run"), GTK_RESPONSE_OK, NULL, NULL);
| ^
In file included from C:/msys64/mingw64/include/glib-2.0/glib.h:49,
from goat-exercise-vala.vala.c:26:
C:/msys64/mingw64/include/glib-2.0/glib/ggettext.h:41:14: note: declared here
41 | const gchar *g_dgettext (const gchar *domain,
| ^~~~~~~~~~
<command-line>: error: expected expression before '...' token
C:/msys64/mingw64/include/glib-2.0/glib/gi18n-lib.h:30:42: note: in expansion of macro 'GETTEXT_PACKAGE'
30 | #define _(String) ((char *) g_dgettext (GETTEXT_PACKAGE, String))
| ^~~~~~~~~~~~~~~
goat-exercise-vala.vala.c:252:246: note: in expansion of macro '_'
252 | _tmp0_ = (GimpDialog*) gimp_dialog_new (_ ("Exercise a goat (Vala)"), PLUG_IN_ROLE, NULL, GTK_DIALOG_USE_HEADER_BAR, _gimp_standard_help_func_gimp_help_func, PLUG_IN_PROC, _ ("_Cancel"), GTK_RESPONSE_CANCEL, _ ("_Source"), GTK_RESPONSE_APPLY, _ ("_Run"), GTK_RESPONSE_OK, NULL, NULL);
| ^
In file included from goat-exercise-vala.vala.c:30:
C:/msys64/mingw64/include/glib-2.0/glib/gi18n-lib.h:30:30: error: too few arguments to function 'g_dgettext'
30 | #define _(String) ((char *) g_dgettext (GETTEXT_PACKAGE, String))
| ^~~~~~~~~~
goat-exercise-vala.vala.c:252:246: note: in expansion of macro '_'
252 | _tmp0_ = (GimpDialog*) gimp_dialog_new (_ ("Exercise a goat (Vala)"), PLUG_IN_ROLE, NULL, GTK_DIALOG_USE_HEADER_BAR, _gimp_standard_help_func_gimp_help_func, PLUG_IN_PROC, _ ("_Cancel"), GTK_RESPONSE_CANCEL, _ ("_Source"), GTK_RESPONSE_APPLY, _ ("_Run"), GTK_RESPONSE_OK, NULL, NULL);
| ^
In file included from C:/msys64/mingw64/include/glib-2.0/glib.h:49,
from goat-exercise-vala.vala.c:26:
C:/msys64/mingw64/include/glib-2.0/glib/ggettext.h:41:14: note: declared here
41 | const gchar *g_dgettext (const gchar *domain,
| ^~~~~~~~~~
goat-exercise-vala.vala.c:267:10: warning: assignment to 'GtkBox *' from incompatible pointer type 'GtkWidget *' [-Wincompatible-pointer-types]
267 | _tmp6_ = gtk_dialog_get_content_area ((GtkDialog*) _tmp5_);
| ^
<command-line>: error: expected expression before '...' token
C:/msys64/mingw64/include/glib-2.0/glib/gi18n-lib.h:30:42: note: in expansion of macro 'GETTEXT_PACKAGE'
30 | #define _(String) ((char *) g_dgettext (GETTEXT_PACKAGE, String))
| ^~~~~~~~~~~~~~~
goat-exercise-vala.vala.c:272:29: note: in expansion of macro '_'
272 | _tmp9_ = g_strdup_printf (_ ("This plug-in is an exercise in '%s' to demo plug-in creation.\n" \
| ^
In file included from goat-exercise-vala.vala.c:30:
C:/msys64/mingw64/include/glib-2.0/glib/gi18n-lib.h:30:30: error: too few arguments to function 'g_dgettext'
30 | #define _(String) ((char *) g_dgettext (GETTEXT_PACKAGE, String))
| ^~~~~~~~~~
goat-exercise-vala.vala.c:272:29: note: in expansion of macro '_'
272 | _tmp9_ = g_strdup_printf (_ ("This plug-in is an exercise in '%s' to demo plug-in creation.\n" \
| ^
In file included from C:/msys64/mingw64/include/glib-2.0/glib.h:49,
from goat-exercise-vala.vala.c:26:
C:/msys64/mingw64/include/glib-2.0/glib/ggettext.h:41:14: note: declared here
41 | const gchar *g_dgettext (const gchar *domain,
| ^~~~~~~~~~
Compilation failed: 1 error(s), 0 warning(s)
error: cc exited with status 1