gimp-plugin-bimp icon indicating copy to clipboard operation
gimp-plugin-bimp copied to clipboard

Ubuntu 16.04. Don't work

Open nemex1975 opened this issue 6 years ago • 5 comments

this appear when I tried to install:

fabio@fabio-LG:~/Downloads/gimp-plugin-bimp-2.0$ sudo make && sudo make install-admin [sudo] senha para fabio: 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/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -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/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) gimp_drawable_fill(layerId, GIMP_FILL_BACKGROUND); ^ src/bimp-operate.c:569:9: warning: implicit declaration of function ‘gimp_item_transform_translate’ [-Wimplicit-function-declaration] gimp_item_transform_translate(layerId, -abs(view_w - final_w) / 2, -abs ^ src/bimp-operate.c:569:49: warning: implicit declaration of function ‘abs’ [-Wimplicit-function-declaration] gimp_item_transform_translate(layerId, -abs(view_w - final_w) / 2, -abs ^ src/bimp-operate.c: In function ‘apply_color’: src/bimp-operate.c:698:23: warning: implicit declaration of function ‘gimp_drawable_brightness_contrast’ [-Wimplicit-function-declaration] success = gimp_drawable_brightness_contrast( ^ src/bimp-operate.c:715:23: warning: implicit declaration of function ‘gimp_drawable_levels_stretch’ [-Wimplicit-function-declaration] success = gimp_drawable_levels_stretch(out->drawable_ids[i]); ^ src/bimp-operate.c:741:31: warning: implicit declaration of function ‘gimp_drawable_curves_spline’ [-Wimplicit-function-declaration] success = gimp_drawable_curves_spline(out->drawable_ids[i], ^ 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) GIMP_CONVERT_DITHER_FS, ^ src/bimp-operate.c:1118:17: error: ‘GIMP_CONVERT_PALETTE_GENERATE’ undeclared (first use in this function) GIMP_CONVERT_PALETTE_GENERATE, ^ 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) GIMP_CONVERT_DITHER_FS, ^ src/bimp-operate.c:1165:9: error: ‘GIMP_CONVERT_PALETTE_GENERATE’ undeclared (first use in this function) GIMP_CONVERT_PALETTE_GENERATE, ^ src/bimp-operate.c: 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 lossles ^ 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) orig_settings->interpolation = GIMP_INTERPOLATION_NOHALO; // replaces L ^ 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) orig_settings->interpolation = GIMP_INTERPOLATION_LOHALO; ^ Makefile:7: recipe for target 'make' failed make: *** [make] Error 1

nemex1975 avatar Dec 31 '18 12:12 nemex1975

It appears you are using the BIMP 2 code for Gimp 2.10.x (eg INTERPOLATION_NOHALO ..etc) with a Gimp 2.8.x installation.

Using Gimp 2.8.x in Ubuntu 16.04 (xenial) then.

If you want to use a PPA then this one: https://launchpad.net/~varlesh-l/+archive/ubuntu/ubuntu-tools/+packages has a BIMP 1.16 for xenial.

or you can use my BIMP 1.18 https://my.pcloud.com/publink/show?code=XZgHaC7ZinomuGCUY6R6lalPSbaMUjoAmzWy

download, unzip, pop in your Gimp profile plugins folder. Permissions should be set but check anyway. I can not remember if the libpcre3 package is a standard with xenial, you might need to install it.

If using a 2.10.x flatpak in xenial, it is possible but takes a bit of setting up.

rich2005 avatar Dec 31 '18 14:12 rich2005

Hi

I have both: the GIMP 2.8 (.deb version) and GIMP 2.10.8 (snap version) installed on my PC, with Ubuntu 16.04.

I could use BIMP 2.0 with GIMP 2.10.8 (snap package)? In this case, I'll unistall GIMP 2.8.

Or is better use GIMP 2.8 (deb package) with BIMP 1.18/2.0? And, uninstalling GIMP 2.10.8.

which is the better combination?

Thanks for help.

nemex1975 avatar Dec 31 '18 14:12 nemex1975

My advice is keep both of them

This is BIMP in my xenial laptop: https://i.imgur.com/XyZdvIb.jpg

The BIMP 2 is in a Gimp 2.10.8 flatpak, I have no experience with snap installations but I understand them to be similar. The Gimp 2.10 installation is "sandboxed" with no access to the usual linux lib files, makes installing some plugins a problem that includes BIMP.

For that reason, I would stick with Gimp 2.8 and BIMP 1.18 for batch processing.

As a note BIMP is not difficult to compile in linux, providing you have the necessary dev files, a straight make works, plenty of warnings but no errors.

Contrary to what the BIMP maintainer says. Most Gimp users do not have multiple accounts on their computer. The place for plugins of any sort is in your Gimp profile ~/.gimp-2.8/plug-ins (or ~/.config/GIMP/2.10/plug-ins for Gimp 2.10)

rich2005 avatar Dec 31 '18 16:12 rich2005

@rich2005: any special last steps required for installing the compiled-from-source plugin if I use flatpak? Can I just run make and then move the output to the plugin folder?

JobLeonard avatar Mar 05 '19 10:03 JobLeonard

@JobLeonard The BIMP plugin works in the flatpak but you will still need a regular Gimp 2.10 installed in order to install libgimp2.0-dev package which contains gimptool-2.0 needed for the compilation. I get round that with a separate VirtualBox ubuntu installation just used for compiling/testing plugins.

I posted a compiled plugin on a similar post https://github.com/alessandrofrancesconi/gimp-plugin-bimp/issues/200

Try that. Should work, as with everything no guarantees.

rich2005 avatar Mar 05 '19 11:03 rich2005