Skip navigation.

Building mythtv

When building mythtv I set the configuration --prefix to the release/branch and then I have a symbolic link to the active mythtv.
In these sampels I have built the mythtv-0.19-fixes branch. When building different releases just change the --prefix to your release/branch and change the symbolic link /usr/local/mythtv to point to the release.
If it's the first time you will build mythtv, then you has to first prepare mythtv build enviroment
Build in this order. If you rebuild some parts then rebuild all following parts also.

  1. mythtv
  2. mythplugins
  3. myththemes

Get the code

svn co http://svn.mythtv.org/svn/branches/release-0-19-fixes

mythtv

Build mythtv.

./configure --prefix=/usr/local/mythtv-0.19-fixes --dvb-path=/usr/src/linux-headers-`uname -r`/include --enable-dvb --enable-xvmc
qmake mythtv.pro
make
sudo make install

mythplugins

Make sure that you have all dependent packages by build dependenses or by installing the required package by looking at the output from configure and install the one by one.

apt-get build-dep mythplugins

When building mythplugins I disable some modules I'm not intrested in. It's up to you to enable/disable, check first with --help command.

/configure --help
./configure --prefix=/usr/local/mythtv-0-19-fixes --enable-transcode --enable-vcd --disable-mythphone --disable-mythgame --disable-mythflix --disable-mythbrowser --disable-mythnews --disable-mythweather --enable-dvd --enable-xvmc --enable-mythmusic --enable-mythdvd --enable-mythgallery
qmake mythplugins.pro
make
sudo make install

myththemes

Changedir to myththemes and youst install it

./configure --prefix=/usr/local/mythtv-0-19-fixes
qmake myththemes.pro
sudo make install

Platform configurations

When you have built all you can ensure that you has the actual mythtv activated.
First make or change the symbolic link.

rm -f /usr/local/mythtv
ln -s /usr/local/mythtv-0-19-fixes /usr/local/mythtv

I also had to link the directory with themes, otherwise the themes was not found.

sudo ln -s /usr/local/mythtv/share/mythtv mythtv

The system must know where all libmythtv libraries are this we fix by editing /etc/ld.so.conf and add the following row.

/usr/local/mythtv/lib

Now load the paht with ldconfig

ldconfig

Edit /etc/login.defs or /etc/profile and ensure that the PATH has mythtv/bin in it.
---/etc/login.defs---

ENV_SUPATH PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/local/mythtv/bin
ENV_PATH PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/mythtv/bin

or update PATH in your .bashrc file.