Compile from source

From OpenELEC
Jump to: navigation, search

This guide will help you to build OpenELEC.

First of all, you need to have a recent Linux distribution (Fedora 15/16, Ubuntu 11.04/11.10/12.04, ARCH Linux, SuSE Linux) and at least 12 GB of free space.

Contents

Tools you'll need

Start by updating your system (on Ubuntu or other Debian-based distribution):

Note: Debian does not need "sudo" however the commands are identical once sudo is removed

Note: at least gcc-4.7 is required.

sudo apt-get update
sudo apt-get upgrade

Reconfigure to bash so we have best possible script compatibility

sudo dpkg-reconfigure dash

and select no, to install bash as the default


Then, install build tools

Ubuntu 14.04 +

you will need libxml-parser-perl

sudo apt-get install libxml-parser-perl

Download OpenELEC from Github

git clone https://github.com/OpenELEC/OpenELEC.tv.git

A new folder called OpenELEC.tv will be created.

Start compiling

Be sure to have lot of free space - at least 12 GB. Better more than less.

In a terminal go to the folder that was just created

cd OpenELEC.tv

Then, to build:

PROJECT=Generic ARCH=x86_64 make release
to build OpenELEC for Generic x86 64 bits.

Take a break!

When the build completes, you will find the fresh build in the target directory of your build directory (the OpenELEC.tv dir)

If you need to clean and start over do the following

make clean

and then start the build process again.

And now?

Dont forget to install your new or update your previous OpenELEC system with the new build, otherwise you cant enjoy your changes!

Sources

http://openelec.tv/forum/12-guides-tips-and-tricks/1061-guide-how-to-build-your-own-openelec-distro

Personal tools
Namespaces
Variants
Actions
Donate
Navigation
Wiki help
Toolbox