Building with HyperV driver / openwsman for Windows
Software environment
- libvirt version: libvirt-7.0.0
Description of problem
Unable to compile libvirt with hyper-v driver for Windows
Steps to reproduce
- Using the
ci/containers/ci-fedora-rawhide-cross-mingw64.Dockerfile
environment - Run meson build but with
-Dopenwsman=enabled -Ddriver_hyperv=enabled
I am using the Fedora dockerfile because AFAIK this is currently the only fully supported way of building for windows? Using the defaults settings it builds fine but as soon as I enable driver_hyperv=enabled says I need feature openwsman. Enabling openwsman says "meson.build:1208:0: ERROR: Dependency "openwsman" not found, tried pkgconfig"
Called /usr/bin/x86_64-w64-mingw32-pkg-config --modversion openwsman
-> 1
There is a linux package installed in the dockerfile dnf install -y libwsman-devel
which is picked up by the normal pkg-config, but not the mingw version.
So I tried building openwsman myself but that opened up a whole new set of problems, it turns out it does not seem currently possible to build openwsman on MinGW:
https://github.com/Openwsman/openwsman/issues/147
https://github.com/msys2/MINGW-packages/issues/2437#issuecomment-299511049