Re: How to compile a vala GIMP plugin on Windows pc?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 Hi Liam,


After trying: valac -X -DGETTEXT_PACKAGE="\"gimp\"" --pkg=gimp-3.0
--pkg=gimp-ui-3.0 goat-exercise-vala.vala

The old error is gone. I'm now getting a new/different error.

C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
C:\msys64\tmp\ccmvXvml.o:goat-exercise-vala.vala.c:(.text+0x151d):
undefined reference to `gimp_plug_in_get_type'
collect2.exe: error: ld returned 1 exit status
Compilation failed: 1 error(s), 0 warning(s)
error: cc exited with status 1

>---> Full error report is attached.

Thanks.
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':
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_);
      |          ^
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccmvXvml.o:goat-exercise-vala.vala.c:(.text+0x28): undefined reference to `gimp_main'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccmvXvml.o:goat-exercise-vala.vala.c:(.text+0x1e2): undefined reference to `gimp_image_procedure_new'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccmvXvml.o:goat-exercise-vala.vala.c:(.text+0x201): undefined reference to `gimp_procedure_set_image_types'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccmvXvml.o:goat-exercise-vala.vala.c:(.text+0x214): undefined reference to `gimp_procedure_set_menu_label'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccmvXvml.o:goat-exercise-vala.vala.c:(.text+0x235): undefined reference to `gimp_procedure_set_documentation'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccmvXvml.o:goat-exercise-vala.vala.c:(.text+0x248): undefined reference to `gimp_procedure_add_menu_path'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccmvXvml.o:goat-exercise-vala.vala.c:(.text+0x269): undefined reference to `gimp_procedure_set_attribution'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccmvXvml.o:goat-exercise-vala.vala.c:(.text+0x27c): undefined reference to `gimp_procedure_set_icon_name'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccmvXvml.o:goat-exercise-vala.vala.c:(.text+0x2ae): undefined reference to `gimp_standard_help_func'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccmvXvml.o:goat-exercise-vala.vala.c:(.text+0x500): undefined reference to `gimp_ui_init'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccmvXvml.o:goat-exercise-vala.vala.c:(.text+0x5c1): undefined reference to `gimp_dialog_new'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccmvXvml.o:goat-exercise-vala.vala.c:(.text+0x817): undefined reference to `gimp_plug_in_directory'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccmvXvml.o:goat-exercise-vala.vala.c:(.text+0xca0): undefined reference to `gimp_dialog_run'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccmvXvml.o:goat-exercise-vala.vala.c:(.text+0xf65): undefined reference to `gimp_procedure_new_return_values'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccmvXvml.o:goat-exercise-vala.vala.c:(.text+0x11b0): undefined reference to `gimp_drawable_mask_intersect'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccmvXvml.o:goat-exercise-vala.vala.c:(.text+0x1274): undefined reference to `gimp_procedure_new_return_values'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccmvXvml.o:goat-exercise-vala.vala.c:(.text+0x1315): undefined reference to `gimp_drawable_get_buffer'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccmvXvml.o:goat-exercise-vala.vala.c:(.text+0x1339): undefined reference to `gimp_drawable_get_shadow_buffer'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccmvXvml.o:goat-exercise-vala.vala.c:(.text+0x13f2): undefined reference to `gimp_drawable_merge_shadow'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccmvXvml.o:goat-exercise-vala.vala.c:(.text+0x141f): undefined reference to `gimp_drawable_update'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccmvXvml.o:goat-exercise-vala.vala.c:(.text+0x1424): undefined reference to `gimp_displays_flush'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccmvXvml.o:goat-exercise-vala.vala.c:(.text+0x1443): undefined reference to `gimp_procedure_new_return_values'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccmvXvml.o:goat-exercise-vala.vala.c:(.text+0x151d): undefined reference to `gimp_plug_in_get_type'
collect2.exe: error: ld returned 1 exit status
Compilation failed: 1 error(s), 0 warning(s)
error: cc exited with status 1
_______________________________________________
gimp-developer-list mailing list
List address:    gimp-developer-list@xxxxxxxxx
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux