alessandrofrancesconi / gimp-plugin-bimp

BIMP. Batch Image Manipulation Plugin for GIMP.
http://www.alessandrofrancesconi.it/projects/bimp
Other
872 stars 93 forks source link

Compiling against GIMP-devel 2.8.16 on OSX 10.11.5 with MacPorts #121

Open whi7ed3vil opened 8 years ago

whi7ed3vil commented 8 years ago
which gimptool-2.0 && which pcre-config && \
    gcc -o ./bin/bimp -Wall -O2 -Wno-unused-variable -Wno-pointer-sign -Wno-parentheses src/*.c src/manipulation-gui/*.c -D_REENTRANT -I/opt/local/include/gimp-2.0 -I/opt/local/include/gegl-0.3 -I/opt/local/include/json-glib-1.0 -I/opt/local/include/babl-0.1 -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0/ -I/opt/local/include -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/libpng16 -I/opt/local/include -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng16 -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/freetype2 -L/opt/local/lib -lgimpui-2.0 -lgimpwidgets-2.0 -lgimpmodule-2.0 -lgimp-2.0 -lgimpmath-2.0 -lgimpconfig-2.0 -lgimpcolor-2.0 -lgimpbase-2.0 -lgegl-0.3 -lgegl-npd-0.3 -lm -lgmodule-2.0 -ljson-glib-1.0 -lbabl-0.1 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -lgio-2.0 -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lXfixes -lX11 -lXext -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lfontconfig -lfreetype -I/opt/local/include -L/opt/local/lib -lpcre -lm -DGIMP_DISABLE_DEPRECATED
/opt/local/bin/gimptool-2.0
/opt/local/bin/pcre-config
src/bimp-gui.c:908:72: warning: 'gdk_pixbuf_from_pixdata' is deprecated [-Wdeprecated-declarations]
    gtk_button_set_image(GTK_BUTTON(button), gtk_image_new_from_pixbuf(gdk_pixbuf_from_pixdata(man->icon, TRUE, NULL)));
                                                                       ^
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h:119:12: note: 'gdk_pixbuf_from_pixdata' has been explicitly marked
      deprecated here
GdkPixbuf*      gdk_pixbuf_from_pixdata (const GdkPixdata       *pixdata,
                ^
src/bimp-gui.c:1036:17: warning: 'gdk_pixbuf_from_pixdata' is deprecated [-Wdeprecated-declarations]
        "logo", gdk_pixbuf_from_pixdata(&pixdata_bimpicon, FALSE, NULL),
                ^
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h:119:12: note: 'gdk_pixbuf_from_pixdata' has been explicitly marked
      deprecated here
GdkPixbuf*      gdk_pixbuf_from_pixdata (const GdkPixdata       *pixdata,
                ^
src/bimp-gui.c:1055:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
        message
        ^~~~~~~
3 warnings generated.
In file included from src/bimp-manipulations-gui.c:18:
src/manipulation-gui/gui-watermark.h:7:9: warning: 'INPUT_W' macro redefined [-Wmacro-redefined]
#define INPUT_W 160
        ^
src/manipulation-gui/gui-color.h:15:9: note: previous definition is here
#define INPUT_W 200
        ^
src/bimp-manipulations-gui.c:49:14: warning: incompatible pointer types assigning to 'void (*)(manipulation_settings)'
      (aka 'void (*)(void *)') from 'void (*)(resize_settings)' (aka 'void (*)(struct manip_resize_set *)')
      [-Wincompatible-pointer-types]
        save = &bimp_resize_save;
             ^ ~~~~~~~~~~~~~~~~~
src/bimp-manipulations-gui.c:53:14: warning: incompatible pointer types assigning to 'void (*)(manipulation_settings)'
      (aka 'void (*)(void *)') from 'void (*)(crop_settings)' (aka 'void (*)(struct manip_crop_set *)') [-Wincompatible-pointer-types]
        save = &bimp_crop_save;
             ^ ~~~~~~~~~~~~~~~
src/bimp-manipulations-gui.c:57:14: warning: incompatible pointer types assigning to 'void (*)(manipulation_settings)'
      (aka 'void (*)(void *)') from 'void (*)(fliprotate_settings)' (aka 'void (*)(struct manip_fliprotate_set *)')
      [-Wincompatible-pointer-types]
        save = &bimp_fliprotate_save;
             ^ ~~~~~~~~~~~~~~~~~~~~~
src/bimp-manipulations-gui.c:61:14: warning: incompatible pointer types assigning to 'void (*)(manipulation_settings)'
      (aka 'void (*)(void *)') from 'void (*)(color_settings)' (aka 'void (*)(struct manip_color_set *)')
      [-Wincompatible-pointer-types]
        save = &bimp_color_save;
             ^ ~~~~~~~~~~~~~~~~
src/bimp-manipulations-gui.c:65:14: warning: incompatible pointer types assigning to 'void (*)(manipulation_settings)'
      (aka 'void (*)(void *)') from 'void (*)(sharpblur_settings)' (aka 'void (*)(struct manip_sharpblur_set *)')
      [-Wincompatible-pointer-types]
        save = &bimp_sharpblur_save;
             ^ ~~~~~~~~~~~~~~~~~~~~
src/bimp-manipulations-gui.c:69:14: warning: incompatible pointer types assigning to 'void (*)(manipulation_settings)'
      (aka 'void (*)(void *)') from 'void (*)(changeformat_settings)' (aka 'void (*)(struct manip_changeformat_set *)')
      [-Wincompatible-pointer-types]
        save = &bimp_changeformat_save;
             ^ ~~~~~~~~~~~~~~~~~~~~~~~
src/bimp-manipulations-gui.c:73:14: warning: incompatible pointer types assigning to 'void (*)(manipulation_settings)'
      (aka 'void (*)(void *)') from 'void (*)(watermark_settings)' (aka 'void (*)(struct manip_watermark_set *)')
      [-Wincompatible-pointer-types]
        save = &bimp_watermark_save;
             ^ ~~~~~~~~~~~~~~~~~~~~
src/bimp-manipulations-gui.c:77:14: warning: incompatible pointer types assigning to 'void (*)(manipulation_settings)'
      (aka 'void (*)(void *)') from 'void (*)(rename_settings)' (aka 'void (*)(struct manip_rename_set *)')
      [-Wincompatible-pointer-types]
        save = &bimp_rename_save;
             ^ ~~~~~~~~~~~~~~~~~
src/bimp-manipulations-gui.c:81:14: warning: incompatible pointer types assigning to 'void (*)(manipulation_settings)'
      (aka 'void (*)(void *)') from 'void (*)(userdef_settings)' (aka 'void (*)(struct manip_userdef_set *)')
      [-Wincompatible-pointer-types]
        save = &bimp_userdef_save;
             ^ ~~~~~~~~~~~~~~~~~~
10 warnings generated.
src/bimp-operate.c:581:37: error: use of undeclared identifier 'GIMP_BACKGROUND_FILL'
        gimp_drawable_fill(layerId, GIMP_BACKGROUND_FILL);
                                    ^
src/bimp-operate.c:585:40: warning: implicitly declaring library function 'abs' with type 'int (int)'
      [-Wimplicit-function-declaration]
        gimp_layer_translate(layerId, -abs(view_w - final_w) / 2, -abs(view_h - final_h) / 2);
                                       ^
src/bimp-operate.c:585:40: note: include the header <stdlib.h> or explicitly provide a declaration for 'abs'
src/bimp-operate.c:714:23: warning: 'gimp_brightness_contrast' is deprecated [-Wdeprecated-declarations]
            success = gimp_brightness_contrast(
                      ^
/opt/local/include/gimp-2.0/libgimp/gimpcolor_pdb.h:36:10: note: 'gimp_brightness_contrast' has been explicitly marked deprecated here
gboolean gimp_brightness_contrast (gint32                drawable_ID,
         ^
src/bimp-operate.c:731:23: warning: 'gimp_levels_stretch' is deprecated [-Wdeprecated-declarations]
            success = gimp_levels_stretch(out->drawable_ids[i]);
                      ^
/opt/local/include/gimp-2.0/libgimp/gimpcolor_pdb.h:50:10: note: 'gimp_levels_stretch' has been explicitly marked deprecated here
gboolean gimp_levels_stretch      (gint32                drawable_ID);
         ^
src/bimp-operate.c:757:31: warning: 'gimp_curves_spline' is deprecated [-Wdeprecated-declarations]
                    success = gimp_curves_spline(out->drawable_ids[i], GIMP_HISTOGRAM_VALUE, colorcurve_num_points_v, colorcur...
                              ^
/opt/local/include/gimp-2.0/libgimp/gimpcolor_pdb.h:64:10: note: 'gimp_curves_spline' has been explicitly marked deprecated here
gboolean gimp_curves_spline       (gint32                drawable_ID,
         ^
src/bimp-operate.c:761:31: warning: 'gimp_curves_spline' is deprecated [-Wdeprecated-declarations]
                    success = gimp_curves_spline(out->drawable_ids[i], GIMP_HISTOGRAM_RED, colorcurve_num_points_r, colorcurve...
                              ^
/opt/local/include/gimp-2.0/libgimp/gimpcolor_pdb.h:64:10: note: 'gimp_curves_spline' has been explicitly marked deprecated here
gboolean gimp_curves_spline       (gint32                drawable_ID,
         ^
src/bimp-operate.c:765:31: warning: 'gimp_curves_spline' is deprecated [-Wdeprecated-declarations]
                    success = gimp_curves_spline(out->drawable_ids[i], GIMP_HISTOGRAM_GREEN, colorcurve_num_points_g, colorcur...
                              ^
/opt/local/include/gimp-2.0/libgimp/gimpcolor_pdb.h:64:10: note: 'gimp_curves_spline' has been explicitly marked deprecated here
gboolean gimp_curves_spline       (gint32                drawable_ID,
         ^
src/bimp-operate.c:769:31: warning: 'gimp_curves_spline' is deprecated [-Wdeprecated-declarations]
                    success = gimp_curves_spline(out->drawable_ids[i], GIMP_HISTOGRAM_BLUE, colorcurve_num_points_b, colorcurv...
                              ^
/opt/local/include/gimp-2.0/libgimp/gimpcolor_pdb.h:64:10: note: 'gimp_curves_spline' has been explicitly marked deprecated here
gboolean gimp_curves_spline       (gint32                drawable_ID,
         ^
src/bimp-operate.c:773:31: warning: 'gimp_curves_spline' is deprecated [-Wdeprecated-declarations]
                    success = gimp_curves_spline(out->drawable_ids[i], GIMP_HISTOGRAM_ALPHA, colorcurve_num_points_a, colorcur...
                              ^
/opt/local/include/gimp-2.0/libgimp/gimpcolor_pdb.h:64:10: note: 'gimp_curves_spline' has been explicitly marked deprecated here
gboolean gimp_curves_spline       (gint32                drawable_ID,
         ^
8 warnings and 1 error generated.
src/bimp-serialize.c:412:17: warning: variable 'n_points' is used uninitialized whenever 'if' condition is false
      [-Wsometimes-uninitialized]
            if (g_str_has_prefix(line, "    (n-points")) {
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/bimp-serialize.c:421:82: note: uninitialized use occurs here
            char* token = strtok(line + strlen(g_strdup_printf("    (points %d", n_points * 2)), " ");
                                                                                 ^~~~~~~~
src/bimp-serialize.c:412:13: note: remove the 'if' if its condition is always true
            if (g_str_has_prefix(line, "    (n-points")) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/bimp-serialize.c:411:25: note: initialize the variable 'n_points' to silence this warning
            int n_points;
                        ^
                         = 0
1 warning generated.
In file included from src/manipulation-gui/gui-fliprotate.c:2:
In file included from /opt/local/include/gimp-2.0/libgimpwidgets/gimpwidgets.h:37:
/opt/local/include/gimp-2.0/libgimpwidgets/gimpcolordisplay.h:97:43: error: unknown type name 'GeglBuffer'
                                          GeglBuffer       *buffer,
                                          ^
/opt/local/include/gimp-2.0/libgimpwidgets/gimpcolordisplay.h:98:43: error: unknown type name 'GeglRectangle'; did you mean
      'GdkRectangle'?
                                          GeglRectangle    *area);
                                          ^~~~~~~~~~~~~
                                          GdkRectangle
/opt/local/include/gtk-2.0/gdk/gdktypes.h:69:36: note: 'GdkRectangle' declared here
typedef struct _GdkRectangle          GdkRectangle;
                                      ^
In file included from src/manipulation-gui/gui-fliprotate.c:2:
In file included from /opt/local/include/gimp-2.0/libgimpwidgets/gimpwidgets.h:37:
/opt/local/include/gimp-2.0/libgimpwidgets/gimpcolordisplay.h:112:52: error: unknown type name 'GeglBuffer'
                                                   GeglBuffer       *buffer,
                                                   ^
/opt/local/include/gimp-2.0/libgimpwidgets/gimpcolordisplay.h:113:52: error: unknown type name 'GeglRectangle'; did you mean
      'GdkRectangle'?
                                                   GeglRectangle    *area);
                                                   ^~~~~~~~~~~~~
                                                   GdkRectangle
/opt/local/include/gtk-2.0/gdk/gdktypes.h:69:36: note: 'GdkRectangle' declared here
typedef struct _GdkRectangle          GdkRectangle;
                                      ^
In file included from src/manipulation-gui/gui-fliprotate.c:2:
In file included from /opt/local/include/gimp-2.0/libgimpwidgets/gimpwidgets.h:38:
/opt/local/include/gimp-2.0/libgimpwidgets/gimpcolordisplaystack.h:89:50: error: unknown type name 'GeglBuffer'
                                                 GeglBuffer            *buffer,
                                                 ^
/opt/local/include/gimp-2.0/libgimpwidgets/gimpcolordisplaystack.h:90:50: error: unknown type name 'GeglRectangle'; did you mean
      'GdkRectangle'?
                                                 GeglRectangle         *area);
                                                 ^~~~~~~~~~~~~
                                                 GdkRectangle
/opt/local/include/gtk-2.0/gdk/gdktypes.h:69:36: note: 'GdkRectangle' declared here
typedef struct _GdkRectangle          GdkRectangle;
                                      ^
In file included from src/manipulation-gui/gui-fliprotate.c:2:
In file included from /opt/local/include/gimp-2.0/libgimpwidgets/gimpwidgets.h:82:
/opt/local/include/gimp-2.0/libgimpwidgets/gimpwidgetsutils.h:54:61: error: unknown type name 'Babl'
                                                      const Babl       **src_format,
                                                            ^
/opt/local/include/gimp-2.0/libgimpwidgets/gimpwidgetsutils.h:55:61: error: unknown type name 'Babl'
                                                      const Babl       **dest_format);
                                                            ^
src/manipulation-gui/gui-fliprotate.c:26:78: warning: 'gdk_pixbuf_from_pixdata' is deprecated [-Wdeprecated-declarations]
    gtk_button_set_image(GTK_BUTTON(button_flipH), gtk_image_new_from_pixbuf(gdk_pixbuf_from_pixdata(&pixdata_flipH, FALSE, NULL)));
                                                                             ^
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h:119:12: note: 'gdk_pixbuf_from_pixdata' has been explicitly marked
      deprecated here
GdkPixbuf*      gdk_pixbuf_from_pixdata (const GdkPixdata       *pixdata,
                ^
src/manipulation-gui/gui-fliprotate.c:32:78: warning: 'gdk_pixbuf_from_pixdata' is deprecated [-Wdeprecated-declarations]
    gtk_button_set_image(GTK_BUTTON(button_flipV), gtk_image_new_from_pixbuf(gdk_pixbuf_from_pixdata(&pixdata_flipV, FALSE, NULL)));
                                                                             ^
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h:119:12: note: 'gdk_pixbuf_from_pixdata' has been explicitly marked
      deprecated here
GdkPixbuf*      gdk_pixbuf_from_pixdata (const GdkPixdata       *pixdata,
                ^
2 warnings and 8 errors generated.
src/manipulation-gui/gui-resize.c:283:40: error: use of undeclared identifier 'GIMP_INTERPOLATION_LANCZOS'
        orig_settings->interpolation = GIMP_INTERPOLATION_LANCZOS;
                                       ^
1 error generated.
src/manipulation-gui/gui-watermark.c:151:75: warning: 'gdk_pixbuf_from_pixdata' is deprecated [-Wdeprecated-declarations]
    gtk_button_set_image(GTK_BUTTON(button_tl), gtk_image_new_from_pixbuf(gdk_pixbuf_from_pixdata(&pixdata_postl, TRUE, NULL)));
                                                                          ^
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h:119:12: note: 'gdk_pixbuf_from_pixdata' has been explicitly marked
      deprecated here
GdkPixbuf*      gdk_pixbuf_from_pixdata (const GdkPixdata       *pixdata,
                ^
src/manipulation-gui/gui-watermark.c:158:75: warning: 'gdk_pixbuf_from_pixdata' is deprecated [-Wdeprecated-declarations]
    gtk_button_set_image(GTK_BUTTON(button_tc), gtk_image_new_from_pixbuf(gdk_pixbuf_from_pixdata(&pixdata_postc, TRUE, NULL)));
                                                                          ^
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h:119:12: note: 'gdk_pixbuf_from_pixdata' has been explicitly marked
      deprecated here
GdkPixbuf*      gdk_pixbuf_from_pixdata (const GdkPixdata       *pixdata,
                ^
src/manipulation-gui/gui-watermark.c:166:75: warning: 'gdk_pixbuf_from_pixdata' is deprecated [-Wdeprecated-declarations]
    gtk_button_set_image(GTK_BUTTON(button_tr), gtk_image_new_from_pixbuf(gdk_pixbuf_from_pixdata(&pixdata_postr, TRUE, NULL)));
                                                                          ^
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h:119:12: note: 'gdk_pixbuf_from_pixdata' has been explicitly marked
      deprecated here
GdkPixbuf*      gdk_pixbuf_from_pixdata (const GdkPixdata       *pixdata,
                ^
src/manipulation-gui/gui-watermark.c:173:75: warning: 'gdk_pixbuf_from_pixdata' is deprecated [-Wdeprecated-declarations]
    gtk_button_set_image(GTK_BUTTON(button_cl), gtk_image_new_from_pixbuf(gdk_pixbuf_from_pixdata(&pixdata_poscl, TRUE, NULL)));
                                                                          ^
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h:119:12: note: 'gdk_pixbuf_from_pixdata' has been explicitly marked
      deprecated here
GdkPixbuf*      gdk_pixbuf_from_pixdata (const GdkPixdata       *pixdata,
                ^
src/manipulation-gui/gui-watermark.c:181:75: warning: 'gdk_pixbuf_from_pixdata' is deprecated [-Wdeprecated-declarations]
    gtk_button_set_image(GTK_BUTTON(button_cc), gtk_image_new_from_pixbuf(gdk_pixbuf_from_pixdata(&pixdata_poscc, TRUE, NULL)));
                                                                          ^
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h:119:12: note: 'gdk_pixbuf_from_pixdata' has been explicitly marked
      deprecated here
GdkPixbuf*      gdk_pixbuf_from_pixdata (const GdkPixdata       *pixdata,
                ^
src/manipulation-gui/gui-watermark.c:188:75: warning: 'gdk_pixbuf_from_pixdata' is deprecated [-Wdeprecated-declarations]
    gtk_button_set_image(GTK_BUTTON(button_cr), gtk_image_new_from_pixbuf(gdk_pixbuf_from_pixdata(&pixdata_poscr, TRUE, NULL)));
                                                                          ^
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h:119:12: note: 'gdk_pixbuf_from_pixdata' has been explicitly marked
      deprecated here
GdkPixbuf*      gdk_pixbuf_from_pixdata (const GdkPixdata       *pixdata,
                ^
src/manipulation-gui/gui-watermark.c:196:75: warning: 'gdk_pixbuf_from_pixdata' is deprecated [-Wdeprecated-declarations]
    gtk_button_set_image(GTK_BUTTON(button_bl), gtk_image_new_from_pixbuf(gdk_pixbuf_from_pixdata(&pixdata_posbl, TRUE, NULL)));
                                                                          ^
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h:119:12: note: 'gdk_pixbuf_from_pixdata' has been explicitly marked
      deprecated here
GdkPixbuf*      gdk_pixbuf_from_pixdata (const GdkPixdata       *pixdata,
                ^
src/manipulation-gui/gui-watermark.c:203:75: warning: 'gdk_pixbuf_from_pixdata' is deprecated [-Wdeprecated-declarations]
    gtk_button_set_image(GTK_BUTTON(button_bc), gtk_image_new_from_pixbuf(gdk_pixbuf_from_pixdata(&pixdata_posbc, TRUE, NULL)));
                                                                          ^
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h:119:12: note: 'gdk_pixbuf_from_pixdata' has been explicitly marked
      deprecated here
GdkPixbuf*      gdk_pixbuf_from_pixdata (const GdkPixdata       *pixdata,
                ^
src/manipulation-gui/gui-watermark.c:211:75: warning: 'gdk_pixbuf_from_pixdata' is deprecated [-Wdeprecated-declarations]
    gtk_button_set_image(GTK_BUTTON(button_br), gtk_image_new_from_pixbuf(gdk_pixbuf_from_pixdata(&pixdata_posbr, TRUE, NULL)));
                                                                          ^
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h:119:12: note: 'gdk_pixbuf_from_pixdata' has been explicitly marked
      deprecated here
GdkPixbuf*      gdk_pixbuf_from_pixdata (const GdkPixdata       *pixdata,
                ^
9 warnings generated.
make: *** [make] Error 1

Looks like "GIMP_BACKGROUND_FILL" is no longer found in the latest source branch of 2.8, and some definitions from Gegl aren't found. Any suggestions? I see there is already an issue post regarding the deprecations and other warnings. (Yes, the disable deprecations flag is in the GCC line. See above.)

whi7ed3vil commented 8 years ago
$ pwd; grep -no "GIMP_BACKGROUND_FILL" *
/opt/local/include/gimp-2.0/libgimpbase
gimpbaseenums.h:288:GIMP_BACKGROUND_FILL

I can confirm that the flag IS defined in my local copy of the source.