While I'm building colord with jhbuild I got this error: Couldn't find include 'Colord-1.0.gir' (search path: ['.', '.', '/home/carlos/gnome-shell/install/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gnome-shell/gir-1.0', '/usr/share/gnome/gir-1.0', '/usr/local/share/gir-1.0', '/usr/share/gir-1.0', '/home/carlos/gnome-shell/install/share/gir-1.0', '/usr/share/gir-1.0', '/home/carlos/gnome-shell/install/share/gir-1.0']) make[2]: *** [ColordGtk-1.0.gir] Error 1 make[2]: Leaving directory `/home/carlos/gnome-shell/source/colord/libcolord-gtk' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/carlos/gnome-shell/source/colord' make: *** [all] Error 2 *** Error during phase build of colord: ########## Error running make -j 8 *** [42/85] the file didn't find is there: /home/carlos/gnome-shell/source/colord/libcolord/Colord-1.0.gir
*** Bug 49606 has been marked as a duplicate of this bug. ***
Does something like this help? diff --git a/libcolord-gtk/Makefile.am b/libcolord-gtk/Makefile.am index dc3ed86..625551d 100644 --- a/libcolord-gtk/Makefile.am +++ b/libcolord-gtk/Makefile.am @@ -83,6 +83,7 @@ ColordGtk_1_0_gir_SCANNERFLAGS = --identifier-prefix=Cd \ --symbol-prefix=cd_ \ --warn-all \ --add-include-path=$(srcdir) \ + --add-include-path=$(top_srcdir)/libcolord \ --c-include="colord-gtk.h" ColordGtk_1_0_gir_EXPORT_PACKAGES = colord-gtk ColordGtk_1_0_gir_LIBS = libcolord-gtk.la
Sorry, It doesn't work
(In reply to comment #2) > Does something like this help? I am getting the same error. The patch does allow the build to progress a little further, then results in a different error: g-ir-scanner: compile: gcc -Wall -pthread -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib64/glib-2.0/include -O0 -g -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib64/glib-2.0/include -I/opt/gnome/include/gio-unix-2.0/ -I/opt/gnome/include/gtk-3.0 -I/opt/gnome/include/pango-1.0 -I/opt/gnome/include/gio-unix-2.0/ -I/opt/gnome/include/atk-1.0 -I/opt/gnome/include/cairo -I/opt/gnome/include/gdk-pixbuf-2.0 -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/libdrm -I.. -I../libcolord -c -o /home/oxyde/gnome/build/colord/libcolord-gtk/tmp-introspect2bh3R6/ColordGtk-1.0.o /home/oxyde/gnome/build/colord/libcolord-gtk/tmp-introspect2bh3R6/ColordGtk-1.0.c g-ir-scanner: link: /bin/sh ../libtool --mode=link --tag=CC gcc -o /home/oxyde/gnome/build/colord/libcolord-gtk/tmp-introspect2bh3R6/ColordGtk-1.0 -export-dynamic -O0 -g -L/opt/gnome/lib64 -L/opt/gnome/lib64 /home/oxyde/gnome/build/colord/libcolord-gtk/tmp-introspect2bh3R6/ColordGtk-1.0.o -L. libcolord-gtk.la -Wl,--export-dynamic -pthread -L/opt/gnome/lib64 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lrt -lglib-2.0 libtool: link: gcc -o /home/oxyde/gnome/build/colord/libcolord-gtk/tmp-introspect2bh3R6/.libs/ColordGtk-1.0 -O0 -g /home/oxyde/gnome/build/colord/libcolord-gtk/tmp-introspect2bh3R6/ColordGtk-1.0.o -Wl,--export-dynamic -pthread -Wl,--export-dynamic -L/opt/gnome/lib64 -L. ./.libs/libcolord-gtk.so -lgtk-3 -lgdk-3 -latk-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lpango-1.0 -lcairo /home/oxyde/gnome/build/colord/libcolord/.libs/libcolord.so -lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lrt -lglib-2.0 -pthread -Wl,-rpath -Wl,/opt/gnome/lib64 cd-window.h:88: Warning: ColordGtk: cd_window_get_profile: argument widget: Unresolved type: 'GtkWidget*' /opt/gnome/bin/g-ir-compiler --includedir=. --includedir=. ColordGtk-1.0.gir -o ColordGtk-1.0.typelib Could not find GIR file 'Colord-1.0.gir'; check XDG_DATA_DIRS or use --includedir error parsing file ColordGtk-1.0.gir: Failed to parse included gir Colord-1.0 make[2]: *** [ColordGtk-1.0.typelib] Error 1 make[2]: Leaving directory `/home/oxyde/gnome/build/colord/libcolord-gtk' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/oxyde/gnome/build/colord' make: *** [all] Error 2
The following modification works for me. Allows build to complete in full. diff --git a/libcolord-gtk/Makefile.am b/libcolord-gtk/Makefile.am index dc3ed86..86db4ab 100644 --- a/libcolord-gtk/Makefile.am +++ b/libcolord-gtk/Makefile.am @@ -2,7 +2,8 @@ if HAVE_INTROSPECTION -include $(INTROSPECTION_MAKEFILE) INTROSPECTION_GIRS = INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) -INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) +INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) \ + --includedir=$(top_srcdir)/libcolord endif INCLUDES = \ @@ -83,6 +84,7 @@ ColordGtk_1_0_gir_SCANNERFLAGS = --identifier-prefix=Cd \ --symbol-prefix=cd_ \ --warn-all \ --add-include-path=$(srcdir) \ + --add-include-path=$(top_srcdir)/libcolord \ --c-include="colord-gtk.h" ColordGtk_1_0_gir_EXPORT_PACKAGES = colord-gtk ColordGtk_1_0_gir_LIBS = libcolord-gtk.la
(In reply to comment #5) > The following modification works for me. Allows build to complete in full. Applied, thanks dude! commit 74038bbf49f3c5a68c0abf2f7aeab9f7d9d1fe49 Author: Craig Keogh <cskeogh@adam.com.au> Date: Tue May 8 17:33:46 2012 +0100 Fix build failure when colord is not installed system-wide Signed-off-by: Richard Hughes <richard@hughsie.com>
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.