Building From Source

From LinuxMCE
Jump to: navigation, search

Building for 0810

Please see Building LinuxMCE 0810

Building for 0804

Please see Building_LinuxMCE

Building on 0710

See also: Setting Up A Development Environment


Set up a directory for the development tree. For example type the following in a shell as "linuxmce" user:

cd /usr/src
sudo mkdir lmce
sudo chown linuxmce lmce
cd lmce

Install Subversion

sudo apt-get install subversion

Fetch the source:

svn co

Copy the libraries needed for to bootstrap:

cp /usr/pluto/lib/* trunk/src/lib

Run configure:

cd trunk

For the source there is no configure script yet. Run these commands to set environment variables for the build (or add to your .profile file to automatically run at shell start)

export SNR_LDFLAGS=" "


Run make:


Building UpdateMedia

Since 7.10 does not use configure, it can be tough getting the entire tree to build. If all you need to build is UpdateMedia (for example), save yourself some trouble and just build that component. For the specific case of UpdateMedia, here are the steps to build based on a 7.10 DVD install and after following the above instructions:

Install mysqlclient-dev:

sudo apt-get install libmysqlclient15-dev

Install attr-dev:

sudo apt-get install attr-dev

Install taglib. Download version 1.5 from, and extract to /usr/src. Then install it with the following commands:

cd /usr/src
sudo chown linuxmce taglib-1.5
cd taglib-1.5
sudo make install
sudo ln -s /usr/local/include/taglib /usr/include/taglib

Install id3lib. Download version 3.8.3 from, and extract to /usr/src. Then install it with the following commands:

cd /usr/src
sudo chown linuxmce id3lib-3.8.3
cd id3lib-3.8.3
sudo make install

Build UpdateMedia:

cd /usr/src/lmce/LinuxMCE-0710/src/UpdateMedia

If all goes well, your new binary for UpdateMedia should be in the current folder.

Building on 0604

Source code for LinuxMCE 0704 is on the Mirrors. This page hasn't been updated for 0704 yet

Before You Begin

The build script is tested and designed to run on Ubuntu 6.10 x86 but it can be changed to work on various platforms or at least to give others a starting point on how to do it. It'll be harder to port it to non deb based distributions since the software depends on many debian specific stuff but this i hope to be change over time.

Also since this script was written with a single goal in mind -- to get everything done -- I might have left, by mistake, some lines of code that may not run on your computers (hardcoded paths and stuff like this). But I rely on you to at least try to fix them before asking for help but if the problem is not so obvious I would gladly give you advice.

The Build Scripts

The build scripts are in sourceforge svn so to get them you will need subversion installed.

sudo apt-get install subversion
svn co

Before running the build script, i insist that you take a look over it so that you know what is doing and not run it blindly.

The main script that you need to run would be This script should checkout the svn for you, compile the source, build the packages, build an iso and everything else so you can end up with a usable linuxmce build. In this script you can find some functions that are called one by one to perform several operations, here's a short description:

  • Install_Build_Needed_Packages: This will install all the deb packages that you