Skip navigation.

Prepare mythtv build enviroment

|

Before we can build mythtv on ubuntu we has to prepare the enviroment with:

  • Update sources.list
  • Get mythtv and mythplugins required programs and libraries
  • Get linux-headers (for dvb support)
  • Get subversion

Update your sources.list

gedit /etc/apt/sources.list

Uncomment the lines with universe repositories (lines 17 and 18, 32 and 33) by removing the initial "#" mark. Make sure that the lines (17, 18, 32, 33) has the keyword "multiverse" at the end; if not, put it there. You can download my version of sources.list.

wget http://www.xsolvo.com/files/mythtv/sources.list

Now update and upgrade your system.

sudo apt-get update
sudo apt-get upgrade

If you're want to build from the source tree then you must install subversion (recomended).

sudo apt-get install subversion

Install all mythtv dependent packages, required to build mythtv.

sudo apt-get build-dep mythtv

If you are going to build mythplugins, then you install dependent packages or select packages depending of wanted plugins observe the output from ./configure command to find required packages)

sudo apt-get build-dep mythplugins

Install linux kernel sources (for dvb support)
Check your kernel revision.

uname -r

Install the kernel headers.

sudo apt-get install linux-headers-`uname -r`

When building mythtv components you must have QTDIR set to your QT directory. I have set it in my .bashrc file.

QTDIR=/usr/lib/qt3

Now the system is prepared to build mythtv.