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

Re: [libvirt] Works: libvirt client on OS X 10.5.6



On Thu, May 07, 2009 at 11:50:25PM -0500, Schley Andrew Kutz wrote:
> Getting libvirt-0.6.3 (client) to compile on OS X
> 
> - Use MacPorts to install gnutls (and its several dependencies)
> 
> - Set environment variables:
> 
>   export LDFLAGS="-L/opt/local/lib"
>   export CPPFLAGS="-I/opt/local/include"
>   export MACOSX_DEPLOYMENT_TARGET=10.4
> 
> - Configure
> 
> --prefix=/opt/libvirt/ --without-sasl --without-avahi --without-polkit  
> --without-python --without-xen --without-qemu --without-lxc --without- 
> openvz --without-libvirtd --without-uml
> 
> - Apply patches
> 
>    src/pci.c
> 
>       #ifndef MODPROBE
>       #define MODPROBE 0
>       #endif
> 
>    src/virsh.c:5665
> 
>       if (command_ret != 0 /* WEXITSTATUS (0) */) {

That's great - we can easily fix these 2 bugs.

> - Compile
> 
> The MACOSX_DEPLOYMENT_TARGET variable is very important, otherwise you  
> will get symbol errors when linking.


We currently have a patch on the website describing how to build for
Windows

http://libvirt.org/windows.html

I think it'd be great to get an equivalent page for OS-X, if you'd
like to document your process formally. Just create a new .html.in
file in the docs/ directory, and add it to docs/sitemap.html.in too.

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


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