alessandrofrancesconi / gimp-plugin-bimp

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

Cannot make BIMP 2.0 on Ubuntu 18.04 and GIMP 2.0 #201

Open speusippo opened 5 years ago

speusippo commented 5 years ago

jacopo@jacopo-MacBookPro:~/Scaricati/gimp-plugin-bimp-2.0$ make && sudo make install-admin which gimptool-2.0 && which pcre-config && \ gcc -o ./bin/bimp -Wall -O2 -Wno-unused-variable -Wno-pointer-sign src/.c src/manipulation-gui/.c src/images/*.c -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gimp-2.0 -lgimpui-2.0 -lgimpwidgets-2.0 -lgimpmodule-2.0 -lgimp-2.0 -lgimpmath-2.0 -lgimpconfig-2.0 -lgimpcolor-2.0 -lgimpbase-2.0 -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 -lfontconfig -lfreetype -lpcre -lm -DGIMP_DISABLE_DEPRECATED /usr/bin/gimptool-2.0 /usr/bin/pcre-config src/bimp-gui.c: In function ‘bimp_show_error_dialog’: src/bimp-gui.c:1086:5: warning: format not a string literal and no format arguments [-Wformat-security] ); ^ In file included from src/bimp-manipulations-gui.c:18:0: src/manipulation-gui/gui-watermark.h:7:0: warning: "INPUT_W" redefined

define INPUT_W 160

In file included from src/bimp-manipulations-gui.c:15:0: src/manipulation-gui/gui-color.h:15:0: 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 from incompatible pointer type [-Wincompatible-pointer-types] save = &bimp_resize_save; ^ src/bimp-manipulations-gui.c:53:14: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] save = &bimp_crop_save; ^ src/bimp-manipulations-gui.c:57:14: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] save = &bimp_fliprotate_save; ^ src/bimp-manipulations-gui.c:61:14: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] save = &bimp_color_save; ^ src/bimp-manipulations-gui.c:65:14: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] save = &bimp_sharpblur_save; ^ src/bimp-manipulations-gui.c:69:14: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] save = &bimp_changeformat_save; ^ src/bimp-manipulations-gui.c:73:14: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] save = &bimp_watermark_save; ^ src/bimp-manipulations-gui.c:77:14: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] save = &bimp_rename_save; ^ src/bimp-manipulations-gui.c:81:14: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] save = &bimp_userdef_save; ^ src/bimp-operate.c: In function ‘apply_resize’: src/bimp-operate.c:547:13: error: ‘GIMP_LAYER_MODE_NORMAL_LEGACY’ undeclared (first use in this function) GIMP_LAYER_MODE_NORMAL_LEGACY ^~~~~~~~~ src/bimp-operate.c:547:13: note: each undeclared identifier is reported only once for each function it appears in src/bimp-operate.c:565:37: error: ‘GIMP_FILL_BACKGROUND’ undeclared (first use in this function); did you mean ‘GIMP_OFFSET_BACKGROUND’? gimp_drawable_fill(layerId, GIMP_FILL_BACKGROUND); ^~~~~~~~ GIMP_OFFSET_BACKGROUND src/bimp-operate.c:569:9: warning: implicit declaration of function ‘gimp_item_transform_translate’; did you mean ‘gimp_item_transform_rotate’? [-Wimplicit-function-declaration] gimp_item_transform_translate(layerId, -abs(view_w - final_w) / 2, -abs(view_h - final_h) / 2); ^~~~~~~~~ gimp_item_transform_rotate src/bimp-operate.c: In function ‘apply_color’: src/bimp-operate.c:698:23: warning: implicit declaration of function ‘gimp_drawable_brightness_contrast’; did you mean ‘gimp_brightness_contrast’? [-Wimplicit-function-declaration] success = gimp_drawable_brightness_contrast( ^~~~~~~~~ gimp_brightness_contrast src/bimp-operate.c:715:23: warning: implicit declaration of function ‘gimp_drawable_levels_stretch’; did you mean ‘gimp_levels_stretch’? [-Wimplicit-function-declaration] success = gimp_drawable_levels_stretch(out->drawable_ids[i]); ^~~~~~~~ gimp_levels_stretch src/bimp-operate.c:741:31: warning: implicit declaration of function ‘gimp_drawable_curves_spline’; did you mean ‘gimp_drawable_set_pixel’? [-Wimplicit-function-declaration] success = gimp_drawable_curves_spline(out->drawable_ids[i], GIMP_HISTOGRAM_VALUE, colorcurve_num_points_v, colorcurve_ctr_points_v); ^~~~~~~ gimp_drawable_set_pixel src/bimp-operate.c: In function ‘image_save’: src/bimp-operate.c:1117:17: error: ‘GIMP_CONVERT_DITHER_FS’ undeclared (first use in this function); did you mean ‘GIMP_FIXED_DITHER’? GIMP_CONVERT_DITHER_FS, ^~~~~~ GIMP_FIXED_DITHER src/bimp-operate.c:1118:17: error: ‘GIMP_CONVERT_PALETTE_GENERATE’ undeclared (first use in this function); did you mean ‘GIMP_TYPE_CONVERT_PALETTE_TYPE’? GIMP_CONVERT_PALETTE_GENERATE, ^~~~~~~~~ GIMP_TYPE_CONVERT_PALETTE_TYPE src/bimp-operate.c: In function ‘image_save_gif’: src/bimp-operate.c:1164:9: error: ‘GIMP_CONVERT_DITHER_FS’ undeclared (first use in this function); did you mean ‘GIMP_FIXED_DITHER’? GIMP_CONVERT_DITHER_FS, ^~~~~~ GIMP_FIXED_DITHER src/bimp-operate.c:1165:9: error: ‘GIMP_CONVERT_PALETTE_GENERATE’ undeclared (first use in this function); did you mean ‘GIMP_TYPE_CONVERT_PALETTE_TYPE’? GIMP_CONVERT_PALETTE_GENERATE, ^~~~~~~~~ GIMP_TYPE_CONVERT_PALETTE_TYPE At top level: src/bimp-operate.c:1242:17: warning: ‘image_save_heif’ defined but not used [-Wunused-function] static gboolean image_save_heif(image_output out, int quality, gboolean lossless) ^~~~~~~ src/bimp-utils.c: In function ‘get_bimp_localedir’: src/bimp-utils.c:172:5: warning: ignoring return value of ‘readlink’, declared with attribute warn_unused_result [-Wunused-result] readlink("/proc/self/exe", path, bufsize); ^~~~~~~~~ src/manipulation-gui/gui-resize.c: In function ‘bimp_resize_save’: src/manipulation-gui/gui-resize.c:283:40: error: ‘GIMP_INTERPOLATION_NOHALO’ undeclared (first use in this function); did you mean ‘GIMP_INTERPOLATION_NONE’? orig_settings->interpolation = GIMP_INTERPOLATION_NOHALO; // replaces LANCZOS ^~~~~~~~~ GIMP_INTERPOLATION_NONE src/manipulation-gui/gui-resize.c:283:40: note: each undeclared identifier is reported only once for each function it appears in src/manipulation-gui/gui-resize.c:286:40: error: ‘GIMP_INTERPOLATION_LOHALO’ undeclared (first use in this function); did you mean ‘GIMP_INTERPOLATION_NOHALO’? orig_settings->interpolation = GIMP_INTERPOLATION_LOHALO; ^~~~~~~~~ GIMP_INTERPOLATION_NOHALO Makefile:7: recipe for target 'make' failed make: *** [make] Error 1

rich2005 commented 5 years ago

See: https://www.gimpusers.com/mailmsg.php?91888%40forums.gimpusers.com

for a video on compiling and a compiled BIMP2 64 bit linux plugin.

rich2005 commented 5 years ago

you should probably look at the previous post as well

https://github.com/alessandrofrancesconi/gimp-plugin-bimp/issues/200#issuecomment-457925613

daggaz commented 4 years ago

If you don't want to update gimptools, the last version that compiles with standard Ubuntu 18 packages is 1.8: https://github.com/alessandrofrancesconi/gimp-plugin-bimp/releases/tag/v1.18

rich2005 commented 4 years ago

That is not correct. Bimp 2.4 complies here Kubuntu 18.04 all very standard

bimp24.zip

daggaz commented 4 years ago

@rich2005 I was basing that on the following from the Bimp 2.0 release notes:

BIMP codebase has been updated to be natively compatible with GIMP 2.10, while it does not work anymore with GIMP <= 2.8.

And that the version available from system repos is 2.8.22-1.

rich2005 commented 4 years ago

Ok, that is a fair comment. The default is Gimp 2.8.22

If you do decide to upgrade

The 'buntu PPA is almost defunct but you can still get Gimp 2.10.14 and those are the dev files I use. There is a portable Gimp 2.10.20 appimage that works very well ...and the flatpak Gimp 2.10.20 now comes with a BIMP plugin package. see: https://www.gimp-forum.net/Thread-Linux-Flatpak-additions-official

something for everyone.

TimoLin commented 1 year ago

The solution is great. This is how I installed gimp and bimp plugin through Flathub and it works fine:

# Install GIMP 
flatpak install https://flathub.org/repo/appstream/org.gimp.GIMP.flatpakref
# Search gimp plugins
flatpak remote-ls |grep -i gimp.plugin
# Install bimp
flatpak install flathub org.gimp.GIMP.Plugin.BIMP//2-40

The //2-40 in the tail specifies the branch you want to install.

Ok, that is a fair comment. The default is Gimp 2.8.22

If you do decide to upgrade

The 'buntu PPA is almost defunct but you can still get Gimp 2.10.14 and those are the dev files I use. There is a portable Gimp 2.10.20 appimage that works very well ...and the flatpak Gimp 2.10.20 now comes with a BIMP plugin package. see: https://www.gimp-forum.net/Thread-Linux-Flatpak-additions-official

something for everyone.