Installation of MythTV SVN
From Erlands Wiki
Installation
Lets install the latest SVN version of MythTV. This instruction presumes that you already have a working MythTV 0.19 installation up and running, it might also work with versions prior to 0.19 but this has not been tested.
- 1. We will start by installing a number of dependencies required when building MythTV.
sudo apt-get install build-essential qt3-dev-tools libqt3-mt-dev liblircclient-dev libasound2-dev libdts-dev libdvdnav-dev libxv-dev libxxf86vm-dev transcode libqt3-mt-mysql liblame-dev subversion libdvdread3-dev libsamplerate0 libxvidcore4 liba52-0.7.4-dev libfame-dev libcdio-dev libmad0-dev libid3tag0-dev libvorbis-dev libflac-dev libcdaudio-dev libcdparanoia0-dev fftw3-dev libsmpeg-dev libtiff4-dev libexif-dev kdelibs4-dev libglut3-dev mysql-client mysql-server libxvmc-dev checkinstall linux-headers-`uname -r`
- 2. Start by uninstalling the previous myth version:
sudo apt-get remove mythtv-common mythtv-doc
- 3. We need to do the following to make MythTV compile on AMD64
sudo mv /usr/lib/libdts.a /usr/lib/libdts.a.old sudo mv /usr/lib/libdts_pic.a /usr/lib/libdts.a
- 4. cd /usr/src
- 5. umask 0002
- 6. Get the latest source:
svn co http://svn.mythtv.org/svn/trunk/mythtv svn co http://svn.mythtv.org/svn/trunk/mythplugins svn co http://svn.mythtv.org/svn/trunk/myththemes
- 7. cd mythtv
- 8. If you want Swedish subtitles to work, you can install the Swedish Subtitles patch by unzipping it and run:
patch -p0 < mythtv_swe_teletext.patch
- 9. Prepare for compilation
./configure --prefix=/usr/local --enable-dvb --dvb-path=/usr/src/linux-headers-2.6.15-26-amd64-k8/include --enable-proc-opt --enable-directfb --enable-xvmc --enable-xvmc-opengl --enable-opengl-vsync --disable-xvmc-vld
- 10. qmake mythtv.pro
- 11. make
- 12. Change 10664 to the subversion revision you checked out and run:
- (run the following command twice, for some reason all files are not included the first time)
sudo checkinstall --pkgversion=0.19.99 --pkgrelease=10664 --pkgaltsource=/usr/local --nodoc --arch=amd64
- 13. cd ../mythplugins
- 14. Prepare mythplugins from compilation:
./configure --use-prefix=/usr/local --disable-mythphone
- 15. qmake mythplugins.pro
- 16. make
- 17. Change 10664 to the subversion revision you checked out and run:
- (run the following command twice, for some reason all files are not included the first time)
sudo checkinstall --pkgversion=0.19.99 --pkgrelease=10664 --pkgaltsource=/usr/local --nodoc --arch=amd64
- 18. cd ../myththemes
- 19. Prepare myththemes from compilation:
./configure --use-prefix=/usr/local
- 20. qmake myththemes.pro
- 21. make
- 22. Change 10664 to the subversion revision you checked out and run:
- (run the following command twice, for some reason all files are not included the first time)
sudo checkinstall --pkgversion=0.19.99 --pkgrelease=10664 --pkgaltsource=/usr/local --nodoc --arch=amd64
- 23. Open /etc/init.d/mythtv-backend and change the line:
DAEMON=/usr/bin/mythbackend
- To:
DAEMON=/usr/local/bin/mythbackend
- 24. Create a new file: /etc/ld.so.conf and add the following line to it:
/usr/local/lib
- 25. We need change back the .a file we changed earlier to get MythTV compile on AMD64
sudo mv /usr/lib/libdts.a /usr/lib/libdts_pic.a sudo mv /usr/lib/libdts.a.old /usr/lib/libdts.a
- 26. sudo ldconfig
- 27. Edit /etc/init.d/mythtv-backen and add the following line somewhere at the top:
HOME=/home/mythtv
References
Categories: MythTV | HTPC | Ubuntu
