[et-mgmt-tools] [PATCH] virt-manager: Basic compile environment for Windows (Cygwin)

Daniel P. Berrange berrange at redhat.com
Thu Nov 29 19:58:50 UTC 2007


On Thu, Nov 29, 2007 at 07:53:20PM +0000, Richard W.M. Jones wrote:
> The attached patch just fixes a few basic compile environment problems 
> for virt-manager under Windows (Cygwin).  It doesn't actually run after 
> this, but it does at least compile without any errors.
> 
> (1) Added a package check for cairo.
> 
> (2) Add cairo CFLAGS and LIBS.
> 
> (3) Include <cairo.h>, which is needed because the code uses 'cairo_t'. 
>  Goodness knows how this works under Linux.

GTK on modern Linux uses cairo for all rendering. Guess Cygwin doesn't
use Cairo. Just as well I didn't remove the non-Cairo fallback in the
sparkline widget :-)

$ find  /usr/include/gtk-2.0 | xargs grep cairo.h
/usr/include/gtk-2.0/gdk/gdkscreen.h:#include <cairo.h>
/usr/include/gtk-2.0/gdk/gdkdrawable.h:#include <cairo.h>
/usr/include/gtk-2.0/gdk/gdk.h:#include <gdk/gdkcairo.h>
/usr/include/gtk-2.0/gdk/gdkpixbuf.h:#include <cairo.h>
/usr/include/gtk-2.0/gdk/gdkcairo.h:#include <pango/pangocairo.h>
/usr/include/gtk-2.0/gdk/gdkcolor.h:#include <cairo.h>
/usr/include/gtk-2.0/gtk/gtkprintoperation.h:#include <cairo.h>
/usr/include/gtk-2.0/gtk/gtkprintoperationpreview.h:#include <cairo.h>

Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 




More information about the et-mgmt-tools mailing list