MythTV 0.20 on Xebian 1.1.4

From Xbox-Linux

acelmonbovit

Table of contents

Introduction

This article describes how to compile MythTV 0.20 from sources on Xebian 1.1.4. This is necessasy if, like me, you've upgraded your master backend to 0.20 as the available packaged version 0.19 release will no longer play anything on the master backend owing to incompatibilities between releases.

These instructions are based on the Xebian 1.1.4 full E: image I have installed but they will be very similar for other variants.

This is written with the aim being that just about anyone should be able to follow it - you don't need to know Linux to actually complete this but a basic understanding of how to edit one file would help a lot (you can always do this by downloading source.list, changing it and then uploading it again)

Assumptions

  1. Xebian 1.1.4 is already on your Xbox
  2. You know how to use SSH to connect to your Xbox and get to a command prompt
  3. Your Xbox can connect to the Internet and download things

Before you start

It's a good idea to grab the sources using a Windows or Linux box and use SFTP to put them on your Xbox. Alternatively you can use the lynx text mode web browser to get the sources.

Whichever way you do it grab the sources from

http://www.mythtv.org/modules.php?name=Downloads&d_op=viewdownload&cid=1

The only required source is that for MythTV itself, plugins and themes are optional and as such won't be described here

The other thing to note is that the supplied /etc/apt/sources.list is now broken again so you may need to update this file as follows

Replace

 deb ftp://ftp.nerim.net/debian-marillat/ sarge main

With

 deb ftp://ftp.sunet.se/pub/os/Linux/distributions/debian-multimedia/ sarge main

Also replace all instances of stable or unstable with sarge.

Additional requirements

To actually compile MythTV we need some optional extras that aren't included in a standard Xebian install. We download and install these extra files from the Internet with the commands

SSH into your Xbox as root (default password xebian)

 apt-get install lame-extras liblame-dev qt3-dev-tools
 apt-get install liblircclient-dev libavcodec-dev libqt3-mt-dev

There's a small problem with the libqt3-dev package that will stop MythTV from compiling on Xebian, fortunately this is very easy to fix with the following command

 ln -s /usr/lib/libqt-mt.so.3.3.4 /usr/lib/libqt-mt.so

Let's get started

SSH into your Xbox as root (default password xebian)

Remove any existing version of MythTV you may have installed with the following command

 apt-get remove mythtv*

If the MythTV sources are not in your current directory move or copy the source there and execute the command

 tar -jxvf mythtv-0.20.tar.bz2 [filename may be different]

This creates a new directory with all the sources in it so change to that directory

 cd mythtv-0.20

Time to build it all

NOTE: To make things compile faster, i suggest you stop unnecessary processes like X and other stuff.


We now have to set everything up ready for compilation with the command

 ./configure --extra-cxxflags=-I/usr/include/freetype2

This produces a report of the selected options and produces a 'Makefile' ready for us to actually build our new copy of MythTV. So, let's build our new MythTV with the following command

 make

At this point it'd be a good idea to find something else to do - we're looking at 12+ hours for this step to complete - start it late at night and leave it to itself!

One thing worth noting if you've never done this kind of thing before is that the make command remembers what it's done so far so if you need your Xbox for something else you can hit Ctrl-C which will stop compilation then later on you can come back, change back to your myth source directory and type make again to continue from where you were up to.

When compilation has finally finished we can finally install our new version of MythTV with the command

 make install

If you had MythTV installed and working before then your old settings still there so getting MythTV running should simply be a case of starting it however you started it before


Add /usr/local/lib in the /etc/ld.so.conf file and run ldconfig.


If this is an addition to your system then you can start MythTV with the command

 mythfrontend