GNOME Bugzilla – Bug 635399
Add C include information to GIRs
Last modified: 2011-07-22 15:05:39 UTC
The GIRs distributed by pango do not currently include information on which C headers to include. This information is important for generating Vala bindings from the GIRs.
Created attachment 174937 [details] [review] Add C include and exported packages information to GIRs
Looks good. Please commit to master.
commit f42a399b94d123f2153ce874825aed414666d9bc Author: Evan Nemerson <evan@coeus-group.com> Date: Sat Nov 20 16:39:42 2010 -0800 Bug 635399 - Add C include and exported packages information to GIRs
Commit f42a39 [1] is causing the build to fail. A successful build of pango must NOT exist in --prefix to reproduce. The error is: /opt/gnome/bin/g-ir-scanner --warn-all --add-include-path=. --add-include-path=. --namespace=PangoXft --nsversion=1.0 --libtool="/bin/sh ../libtool" --pkg=gobject-2.0 --pkg=freetype2 --include=GObject-2.0 --include=xft-2.0 --include=xlib-2.0 --pkg-export=pangoxft --library=libpangoxft-1.0.la --include-uninstalled=./PangoFT2-1.0.gir --c-include "pango/pangoxft.h" -I.. pangoxft.h pangoxft-render.h pangoxft-font.c pangoxft-fontmap.c pangoxft-render.c libpangoxft-1.0.la PangoFT2-1.0.gir --output PangoXft-1.0.gir Package pango was not found in the pkg-config search path. Perhaps you should add the directory containing `pango.pc' to the PKG_CONFIG_PATH environment variable No package 'pango' found In file included from ../pango/pango-font.h:25:0, from ../pango/pango-context.h:25, from /home/oxyde/gnome/pango/pango/pangoxft.h:26, from <stdin>:4: ../pango/pango-coverage.h:25:18: fatal error: glib.h: No such file or directory compilation terminated. Error while processing the source. make[4]: *** [PangoXft-1.0.gir] Error 1 make[4]: Leaving directory `/home/oxyde/gnome/pango/pango' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/oxyde/gnome/pango/pango' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/oxyde/gnome/pango/pango' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/oxyde/gnome/pango' make: *** [all] Error 2 [1] http://git.gnome.org/browse/pango/commit/?id=f42a399b94d123f2153ce874825aed414666d9bc
Created attachment 192143 [details] [review] Build GIR correctly when pango isn't already installed I think this should do the trick.
*** This bug has been marked as a duplicate of bug 654689 ***