[Libguestfs] [PATCH] Fix out-of-tree build for GObject bindings

Hilko Bengen bengen at hilluzination.de
Wed Mar 28 21:31:51 UTC 2012


guestfs-gobject.h (in the source directory) was not found.

In file included from <stdin>:4:0:
/path/to/libguestfs/gobject/guestfs-gobject.h:23:37: fatal error: guestfs-gobject-session.h: No such file or directory
compilation terminated.
Error while processing the source.
make[2]: *** [Guestfs-1.0.gir] Error 1
---
 gobject/Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gobject/Makefile.am b/gobject/Makefile.am
index aef07d7..d482d21 100644
--- a/gobject/Makefile.am
+++ b/gobject/Makefile.am
@@ -56,7 +56,7 @@ introspection_sources = \
 
 Guestfs-1.0.gir: $(libname)
 Guestfs_1_0_gir_INCLUDES = GObject-2.0 Gio-2.0
-Guestfs_1_0_gir_CFLAGS = $(INCLUDES)
+Guestfs_1_0_gir_CFLAGS = $(INCLUDES) -I$(srcdir)
 Guestfs_1_0_gir_LIBS = $(libname)
 Guestfs_1_0_gir_FILES = $(introspection_sources)
 INTROSPECTION_GIRS += Guestfs-1.0.gir
-- 
1.7.9.1




More information about the Libguestfs mailing list