Discussion:
[libvirt-users] libvirt on Windows
Robin Stegk
2018-02-01 13:19:03 UTC
Permalink
Hello,

i am interested in developing against the libvirt library. But we would also need an actively developed version for Windows.
The links I found on the website for Windows related builds are all pretty outdated and do not really work for me.

* https://github.com/SPICE/virt-viewer Last commit 2 years ago
* https://github.com/photron/msys_setup Last commit 5 years ago

So before getting invested too much, I wanted to ask how is the situation with Windows builds? Is libvirt focused on linux only for now, or do I just need to look somewhat better?
Maybe the cross compiling is working? (I didn't try that for now, because I would need to set up a Fedora maschine).

With kind regards / Mit besten Grüßen
Robin Stegk
Software Engineer

--
Paessler AG - The Network Monitoring Company
Thurn-und-Taxis-Straße 14, 90411 Nürnberg, Deutschland
Telefon: +49 911 93775-0 - Fax: +49 911 93775-409
https://www.de.paessler.com

------------------------------------------------------------------------------------------
Mehr als 200.000 IT-Administratoren weltweit vertrauen auf PRTG
------------------------------------------------------------------------------------------

Vorstand: Dr. Marc Rössel, Christian Twardawa
Aufsichtsratsvorsitzender: Dr. Heinz Raufer
Eintragung: Amtsgericht Nürnberg HRB 23757
Daniel P. Berrangé
2018-02-01 14:52:18 UTC
Permalink
Post by Robin Stegk
Hello,
i am interested in developing against the libvirt library. But we would
also need an actively developed version for Windows.
The links I found on the website for Windows related builds are all
pretty outdated and do not really work for me.
* https://github.com/SPICE/virt-viewer Last commit 2 years ago
* https://github.com/photron/msys_setup Last commit 5 years ago
Neither of these are supported by the libvirt project - they're 3rd
party efforts.
Post by Robin Stegk
So before getting invested too much, I wanted to ask how is the situation
with Windows builds? Is libvirt focused on linux only for now, or do I
just need to look somewhat better?
Maybe the cross compiling is working? (I didn't try that for now, because
I would need to set up a Fedora maschine).
We actively support Windows, but *only* when compiled with the mingw toolchain
and we only test this for cross-compilation from Linux. GCC and/or CLang is a
hard requirement - we won't support Microsoft C compilers for building libvirt.
The GCC/Clang produced DLLs should be usabled from apps built with other
compilers though.

If all you need is the DLLs, then you could alternatively get the Fedora
mingw RPMs for libvirt and extract their content.


Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Eric Blake
2018-02-01 15:43:49 UTC
Permalink
Post by Daniel P. Berrangé
We actively support Windows, but *only* when compiled with the mingw toolchain
and we only test this for cross-compilation from Linux. GCC and/or CLang is a
hard requirement - we won't support Microsoft C compilers for building libvirt.
The GCC/Clang produced DLLs should be usabled from apps built with other
compilers though.
Libvirt is also available on Windows via the Cygwin platform:
https://sourceware.org/ml/cygwin-announce/2017-09/msg00017.html
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
Daniel P. Berrangé
2018-02-01 15:49:56 UTC
Permalink
Post by Eric Blake
Post by Daniel P. Berrangé
We actively support Windows, but *only* when compiled with the mingw toolchain
and we only test this for cross-compilation from Linux. GCC and/or CLang is a
hard requirement - we won't support Microsoft C compilers for building libvirt.
The GCC/Clang produced DLLs should be usabled from apps built with other
compilers though.
https://sourceware.org/ml/cygwin-announce/2017-09/msg00017.html
Hmm, i'm amazed that still works given that we never test cygwin...

Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Loading...