Re: [PATCH] Compile libvirt under Windows (Cygwin)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 26, 2007 at 12:44:49PM +0000, Richard Jones wrote:
> Jim Meyering wrote:
> >"Richard W.M. Jones" <rjones@xxxxxxxxxx> wrote:
> >>The following patchset allows an incomplete compilation of libvirt under
> >>Windows using Cygwin.  Current limitations are:
> >
> >Nice work!
> >I admire your fortitude :-)
> >This should help libvirt get more exposure.
> 
> Thanks for the encouragement!

  Well that's really cool. I assume what you get in the end is the library
with just the remote support, but which should be sufficient to connect to
the boxes hosting the hypervisors and libvirt daemon, right ?

> For the record I have now applied all the patches to CVS as posted, 
[...]
> Currently the main problem is persuading libtool to build Windows shared 
> libraries (DLLs).  I've followed all the instructions in the manual and 
> various things from the web and it just doesn't work (as Dan said "Isn't 
> libtool supposed to sort this out?").

  Hum, also one of the problem i found out quickly with libxml2 on windows
is that most people just can use cygwin, some just fallback to mingw for 
licencing issues but a large majority use some kind of Microsoft compilers,
and getting a DLL which works with more than one can be seriously challenging.

> Without having at least libvirtmod.dll, Python support is hard to do, 
> which means of course that virt-manager doesn't work yet.

  If the goal is to get virt-manager working, then yes cygwin should be just
fine once the shared lib issue is fixed. I assume virsh remote support works
now, right ?

> Anyone who wants to try libvirt under Windows today, you will need 
> libvirt from CVS + the attached patch to get it to build (but not yet to 
> get shared libs working).
[...]
> Index: src/getaddrinfo.c
> ===================================================================
> RCS file: src/getaddrinfo.c
> diff -N src/getaddrinfo.c
> --- /dev/null	1 Jan 1970 00:00:00 -0000
> +++ src/getaddrinfo.c	26 Nov 2007 12:36:02 -0000
> @@ -0,0 +1,593 @@
> +/*
> + * Copyright (c) 2001, 02  Motoyuki Kasahara
> + *
> + * Redistribution and use in source and binary forms, with or without
> + * modification, are permitted provided that the following conditions
> + * are met:
> + * 1. Redistributions of source code must retain the above copyright
> + *    notice, this list of conditions and the following disclaimer.
> + * 2. Redistributions in binary form must reproduce the above copyright
> + *    notice, this list of conditions and the following disclaimer in the
> + *    documentation and/or other materials provided with the distribution.

  Ouch, that's not really something we can embbed generally ...


  thanks !

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard@xxxxxxxxxx  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]