[libvirt] compile libvirt in windows

Daniel P. Berrange berrange at redhat.com
Mon Mar 15 16:44:44 UTC 2010


On Mon, Mar 08, 2010 at 03:42:12PM -0300, Luis Costa wrote:
> Dear friends
> 
> It would like to know as I I make to compile libvirt in the Windows?
> I already installed the MingGW, you I have some cake prescription?

On Fedora 12 you can build libvirt for mingw using the following

  PKG_CONFIG_PATH="/usr/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig" \
  CC="i686-pc-mingw32-gcc" \
  ./configure \
    --build=$(uname -m)-pc-linux \
    --host=i686-pc-mingw32 \
    --prefix="/usr/i686-pc-mingw32/sys-root/mingw" \
    --enable-compile-warnings=error \
    --without-sasl \
    --without-avahi \
    --without-polkit \
    --without-python \
    --without-xen \
    --without-qemu \
    --without-lxc \
    --without-uml \
    --without-vbox \
    --without-openvz \
    --without-one \
    --without-phyp \
    --without-netcf \
    --without-libvirtd

This disables all drivers except for test, remote & ESX. This gives a build
that can run as a client 

Regards,
Daniel
-- 
|: Red Hat, Engineering, London    -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :|
|: http://autobuild.org        -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|




More information about the libvir-list mailing list