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

Richard W.M. Jones rjones at redhat.com
Wed Mar 28 21:40:55 UTC 2012


On Wed, Mar 28, 2012 at 11:31:51PM +0200, Hilko Bengen wrote:
> 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

ACK.  Please push this, and the other two as well :-)

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org




More information about the Libguestfs mailing list