This is an old revision of the document!
This wiki will explain the steps I have followed to cross-compile the rasbperrypi-optimzed xmbc named xmbc-rbp.
The compilation is done from an x86 computer and will generate arm binaries suitable for Raspberry Pi. All the process is oriented for the generation of a Arch Linux ARM package. The Arch Linux ARM distribution for Raspberry Pi can be found on the Raspberry Pi download page
In fact, a PKGBUILD for xmbc-rbp is already available in AUR. This package is, as far as I know, fully functionnal « but » it respects Arch Linux ARM official way of generating package that is compiling directly on the target device, eventually with the help of distcc to distribute the work, even on x86 computer.
The former method has the advantage that all the preprocessing is done on the target system, with target include/libraries/… which is much more simple.
The method explained here will do all the compilation on the x86 computer but will need to access the root system of the Rasbperry Pi for the libraries and include of extern libraries. This is accomplished by for example mounting the sd card of the Raspberry Pi on the computer.
Ok here it comes…