Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#22198 - [gdk-pixbuf2] [gtk2] gdk headers are in the wrong place

Attached to Project: Arch Linux
Opened by Robert de Jager (blob) - Thursday, 23 December 2010, 11:48 GMT
Last edited by Jan de Groot (JGC) - Thursday, 23 December 2010, 14:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I'm trying to compile something that includes /usr/include/gtk-2.0/gdk/gdkpixbuf.h, which fails because both /usr/include/gtk-2.0/gdk/gdkpixbuf.h and everything in /usr/include/gdk-pixbuf-2.0/gdk-pixbuf tries to include headers in /usr/include/gdk-pixbuf, which doesn't exist.

I worked around the problem by symlinking:
/usr/include/gdk-pixbuf-2.0/gdk-pixbuf to /usr/include/gdk-pixbuf
and
/usr/include/gdk-pixbuf-2.0/gdk-pixbuf-xlib to /usr/include/gdk-pixbuf-xlib

This is of course a bit of a dirty solution, maybe these headers in the packages themselves need some sed operations
This task depends upon

Closed by  Jan de Groot (JGC)
Thursday, 23 December 2010, 14:46 GMT
Reason for closing:  Not a bug
Comment by Jan de Groot (JGC) - Thursday, 23 December 2010, 12:39 GMT
This is not a bug in gtk2 and gdk-pixbuf, but a bug in your code. You should use pkg-config to get additional cflags and ldflags for gdk-pixbuf and gdk. Besides that, gdk-pixbuf.h is not meant to get included, you should include <gdk/gdk.h> instead.
Comment by Ionut Biru (wonder) - Thursday, 23 December 2010, 12:39 GMT
that "something" that you try to compile should be fix to get the header path from gdk-pixbuf-2.0.pc instead of gtk2 because now is split out from gtk2

pkg-config --cflags gdk-pixbuf-2.0

Loading...