[Libvir] [PATCH] Compile libvirt under Windows (Cygwin)

Richard Jones rjones at redhat.com
Mon Nov 26 12:44:49 UTC 2007


Jim Meyering wrote:
> "Richard W.M. Jones" <rjones at redhat.com> 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!

For the record I have now applied all the patches to CVS as posted, 
except where noted:

(1) I reimplemented cfmakeraw as a separate function as per your suggestion.

(2) Unimplemented tests changed to return 77 instead of EXIT_SUCCESS.

(3) I left out the alternate getaddrinfo implementation until I have 
time to look at gnulib.  I wasn't aware of this library actually. 
Unfortunately I can't easily check whether it works under Cygwin because 
my (working) Windows installation is not with me at the moment.

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?").

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

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).

Rich.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt-win-20071126.patch
Type: text/x-patch
Size: 23446 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20071126/50dbee8c/attachment-0001.bin>


More information about the libvir-list mailing list