I've been interested in a dedicated raspberry pi mythbox since my sheevaplug died a few months ago and I wanted to share my working packages. Technically, I compiled them on raspbmc but they should work fine on raspbian. My goal in this whole process was to have a working backend that interfaced with my Hauppauge HVR-1950 to act as a pvr. The mythtv frontend installs fine, but I like the XBMC frontend on raspbmc, so I haven't played with it too much. The backend is working great.
In compiling I tried to change as few things as possible. I've documented my steps below, so hopefully they can be repeated if necessary. The installation packages are set up so that they can act as a local debian repository an your raspberry pi. There are a lot of small packages, so it makes it a lot cleaner to install. See
http://www.togaware.com/linux/survivor/ ... ebian.html for more details.
INSTALLATION INSTRUCTIONS
On the rpi
Code: Select all
cd /
sudo wget http://dl.dropbox.com/u/4581144/mythtv-rpi_packages.tgz
sudo tar -zxvf mythtv-rpi_packages.tgz
Add the following to /etc/apt/sources.list
Update and install mythtv
Code: Select all
apt-get update
apt-get install mythtv
The additional modules are there so mythweb is also available.
COMPILATION INSTRUCTIONS
Add the following to /etc/apt/sources.list
Code: Select all
deb-src http://www.deb-multimedia.org wheezy main
Get the apt keys
Code: Select all
wget http://www.deb-multimedia.org/pool/main/d/deb-multimedia-keyring/deb-multimedia-keyring_2012.05.05_all.deb
dpkg --install deb-multimedia-keyring_2012.05.05_all.deb
apt-get update
Make a compilation directory
Install flaac-dev
Code: Select all
apt-get build-dep libfaac-dev
apt-get source libfaac-dev
cd faac-*
The deb-multimedia looks for libmp4v2-dev with a version greater than 2.0.0. However, debian used 2.0.0~, so you have to cheat a bit and lower the version it looks for. Edit ./debian/control and change libmp4v2-dev (>= 2.0.0) to libmp4v2-dev (>= 1.9.0).
Code: Select all
dpkg-buildpackage
cd ..
dpkg -i libfaac-dev_*
Raspbmc was in the process of updating the kernel when I was compiling, so their kernel headers were incorrect for a while. Since they're now on kernel 3.6, the __kernel_ulong_t in /usr/include/linux/sysinfo.h is correct and won't need to be modified. If anyone runs into a problem with the headers I can post more on this issue, but I think it's resolved now.
Install mythtv
Code: Select all
apt-get build-dep mythtv
apt-get source mythtv
cd mythtv-dmo-*
dpkg-buildpackage
cd ..
To install mythplugins, follow the same process. You'll likely have to install some of the mythpackages before it will let you compile the plugins. I would again strongly recommend putting the compiled packages into the mirror to make them easy for apt to find. If mythtv and all the libraries were placed in the repository, the mythplugins can install using:
Code: Select all
apt-get build-dep mythtvweb
apt-get source mythweb
cd mythtv-dmo-*
dpkg-buildpackage
cd ..
I hope this helps. Please let me know if I missed a step in my explanations and I will update them.
John