Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails with src/manipulation-gui/gui-watermark.c:211:5: warning: ‘gdk_pixbuf_from_pixdata’ is deprecated [-Wdeprecated-declarations] #172

Closed
dreirund opened this issue May 17, 2018 · 1 comment

Comments

@dreirund
Copy link

When building gimp-plugin-bimp on Arch Linux (using the AUR package http://aur.archlinux.org/packages/gimp-plugin-bimp/), the build fails with:

[...]
src/manipulation-gui/gui-watermark.c:211:5: 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)));
     ^~~~~~~~~~~~~~~~~~~~
In file included from src/manipulation-gui/../bimp-manipulations.h:5,
                 from src/manipulation-gui/gui-watermark.h:5,
                 from src/manipulation-gui/gui-watermark.c:4:
/usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h:119:12: note: declared here
 GdkPixbuf* gdk_pixbuf_from_pixdata (const GdkPixdata *pixdata,
            ^~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:7: make] Error 1

In the comments section of http://aur.archlinux.org/packages/gimp-plugin-bimp/#comments, there is a note

Propably best reporting this error upstream. Although this seems to be just a deprecation warning treated as an error. Didn't saw a flag in the Makefile, so dunno where it is set. Maybe it is covered by -DGIMP_DISABLE_DEPRECATED

It seems that upstream should change the Makefile.

@alessandrofrancesconi
Copy link
Owner

Latest version v2.0 should fix this issue. Please give it a try!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants