Skip to content

Instantly share code, notes, and snippets.

@hrehfeld
Created June 7, 2018 11:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hrehfeld/12e00f7ac530e4b8e52aa619bd38c33d to your computer and use it in GitHub Desktop.
Save hrehfeld/12e00f7ac530e4b8e52aa619bd38c33d to your computer and use it in GitHub Desktop.
gcc -o ./bin/bimp -Wall -O2 -Wno-unused-variable -Wno-pointer-sign -Wno-parentheses src/*.c src/manipulation-gui/*.c -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/uuid -I/usr/include/gegl-0.4 -I/usr/include/json-glib-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread -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.4 -lgegl-npd-0.4 -lm -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -ljson-glib-1.0 -lbabl-0.1 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfribidi -lfontconfig -lfreetype -lpcre -lm -DGIMP_DISABLE_DEPRECATED
/usr/bin/gimptool-2.0
/usr/bin/pcre-config
src/bimp-gui.c: In function ‘add_manipulation_button’:
src/bimp-gui.c:918:5: 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)));
^~~~~~~~~~~~~~~~~~~~
In file included from src/bimp-manipulations.h:5,
from src/bimp-gui.c:13:
/usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h:119:12: note: declared here
GdkPixbuf* gdk_pixbuf_from_pixdata (const GdkPixdata *pixdata,
^~~~~~~~~~~~~~~~~~~~~~~
src/bimp-gui.c: In function ‘open_about’:
src/bimp-gui.c:1046:9: warning: ‘gdk_pixbuf_from_pixdata’ is deprecated [-Wdeprecated-declarations]
"logo", gdk_pixbuf_from_pixdata(&pixdata_bimpicon, FALSE, NULL),
^~~~~~
In file included from src/bimp-manipulations.h:5,
from src/bimp-gui.c:13:
/usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h:119:12: note: declared here
GdkPixbuf* gdk_pixbuf_from_pixdata (const GdkPixdata *pixdata,
^~~~~~~~~~~~~~~~~~~~~~~
In file included from src/bimp-manipulations-gui.c:18:
src/manipulation-gui/gui-watermark.h:7: warning: "INPUT_W" redefined
#define INPUT_W 160
In file included from src/bimp-manipulations-gui.c:15:
src/manipulation-gui/gui-color.h:15: note: this is the location of the previous definition
#define INPUT_W 200
src/bimp-manipulations-gui.c: In function ‘bimp_open_editwindow’:
src/bimp-manipulations-gui.c:49:14: warning: assignment to ‘void (*)(void *)’ from incompatible pointer type ‘void (*)(struct manip_resize_set *)’ [-Wincompatible-pointer-types]
save = &bimp_resize_save;
^
src/bimp-manipulations-gui.c:53:14: warning: assignment to ‘void (*)(void *)’ from incompatible pointer type ‘void (*)(struct manip_crop_set *)’ [-Wincompatible-pointer-types]
save = &bimp_crop_save;
^
src/bimp-manipulations-gui.c:57:14: warning: assignment to ‘void (*)(void *)’ from incompatible pointer type ‘void (*)(struct manip_fliprotate_set *)’ [-Wincompatible-pointer-types]
save = &bimp_fliprotate_save;
^
src/bimp-manipulations-gui.c:61:14: warning: assignment to ‘void (*)(void *)’ from incompatible pointer type ‘void (*)(struct manip_color_set *)’ [-Wincompatible-pointer-types]
save = &bimp_color_save;
^
src/bimp-manipulations-gui.c:65:14: warning: assignment to ‘void (*)(void *)’ from incompatible pointer type ‘void (*)(struct manip_sharpblur_set *)’ [-Wincompatible-pointer-types]
save = &bimp_sharpblur_save;
^
src/bimp-manipulations-gui.c:69:14: warning: assignment to ‘void (*)(void *)’ from incompatible pointer type ‘void (*)(struct manip_changeformat_set *)’ [-Wincompatible-pointer-types]
save = &bimp_changeformat_save;
^
src/bimp-manipulations-gui.c:73:14: warning: assignment to ‘void (*)(void *)’ from incompatible pointer type ‘void (*)(struct manip_watermark_set *)’ [-Wincompatible-pointer-types]
save = &bimp_watermark_save;
^
src/bimp-manipulations-gui.c:77:14: warning: assignment to ‘void (*)(void *)’ from incompatible pointer type ‘void (*)(struct manip_rename_set *)’ [-Wincompatible-pointer-types]
save = &bimp_rename_save;
^
src/bimp-manipulations-gui.c:81:14: warning: assignment to ‘void (*)(void *)’ from incompatible pointer type ‘void (*)(struct manip_userdef_set *)’ [-Wincompatible-pointer-types]
save = &bimp_userdef_save;
^
src/bimp-operate.c: In function ‘apply_resize’:
src/bimp-operate.c:563:13: error: ‘GIMP_NORMAL_MODE’ undeclared (first use in this function); did you mean ‘GIMP_REPEAT_NONE’?
GIMP_NORMAL_MODE
^~~~~~~~~~~~~~~~
GIMP_REPEAT_NONE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment