Difference between revisions of "Compile the XAPI toolstack from source"

From Xen
Line 31: Line 31:
 
This will build all of the required packages for Xapi on Debian. Take a look at 'git-repos' to see which repositories are involved, and modify that to point to your own repositories if you plan on compiling your own code.
 
This will build all of the required packages for Xapi on Debian. Take a look at 'git-repos' to see which repositories are involved, and modify that to point to your own repositories if you plan on compiling your own code.
   
[[Category:XCP]]
+
[[Category:XAPI Devel]]
 
[[Category:Development Process]]
 
[[Category:Development Process]]
[[Category:Developers]]
 

Revision as of 14:19, 11 July 2013

The easiest way to compile the XAPI toolstack from source is to use the xapi-autobuilder. We usually run on a debian unstable or ubuntu 11.10 amd64 machine.

Prerequisites

Install the required packages:

apt-get install cowbuilder pbuilder debhelper dh-ocaml dh-autoreconf cdebootstrap
  python-debian git git-buildpackage omake ocaml-findlib

Building

First, clone the build scripts:

git clone https://github.com/jonludlam/xapi-autobuilder.git
cd xapi-autobuilder

The build scripts can build for several different distributions and architectures. To select, run

export DIST=oneiric # or sid or precise
export ARCH=amd64 # or i386

Then run:

make


This will build all of the required packages for Xapi on Debian. Take a look at 'git-repos' to see which repositories are involved, and modify that to point to your own repositories if you plan on compiling your own code.