Jump to content

Mythtv SVN

From MattWiki

CPAN[edit | edit source]

As root run. cpan

  • hit enter for all the questions until it asked about the PREFIX and change that to the same as the mythtv prefix then continue until you get the the prompt.
  • at the prompt enter.
install Date::Parse
install Time::Format
exit

Update Mythtv from SVN[edit | edit source]

This is to bring your setup to the latest BETA Mythtv Software,

You May Skip This Part.

Also see the page on updating to Latest SVN.

  • In order to get the latest updates of mythtv, download and install them from source.
cd /tmp/svn
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

Now lets update the system one last time

yum -y update

There are a number of development libraries and packages required to compile MythTV. The following commands should obtain them all.

yum -y install gcc-* freetype-devel lame-devel qt-devel mysql-devel lirc-lib-devel subversion ncftp pulseaudio-libs-devel qt-*
yum -y install mesa-libGLU-devel libXv-devel libXxf86vm-devel libXmu-devel qt-MySQL libXvMC-devel kdelibs-devel

Run the following to get the myth plugin dependencies

yum -y install faad2-devel fftw2 fftw2-devel libid3tag libid3tag-devel  flac-devel libtiff-devel MySQL-python transcode
yum -y install libcdaudio-devel SDL-devel cdparanoia-devel libexif-devel libmad-devel fftw3 fftw3-devel mjpegtools
yum -y install libvorbis libvorbis-devel libvisual libvisual-devel libvisual-plugins taglib taglib-devel dvdauthor

All needed files are:

yum -y install perl-HTML-Tree perl-File-Slurp perl-XML-Parser perl-XML-Twig mx MySQL-python perl-Lingua-Preferred \
dvdauthor perl-TermReadKey perl-Locale-Hebrew perl-XML-Writer perl-Unicode-UTF8simple fftw2 perl-XML-LibXML perl-XMLTV \
xmltv-gui xmltv-grabbers xmltv perl-XML-SAX libcdaudio perl-TimeDate perl-MailTools perl-MIME-Lite perl-SOAP-Lite \
perl-HTTP-Cache-Transparent kakasi perl-Text-Kakasi perl-XML-LibXML-Common perl-Tk-TableMatrix php-cli php php-pdo \
php-mysql perl-DBD-MySQL mysql-server perl-HTML-TableExtract perl-Class-MethodMaker perl-Term-ProgressBar qt-MySQL \
perl-XML-NamespaceSupport perl-IO-stringy transcode perl-WWW-Mechanize perl-Tk perl-DBI perl-DateManip php-common mysql
  • update qmake
ln -s /usr/lib/qt-3.3/bin/qmake /usr/bin/qmake
  • In order to find all the libs run
echo "/usr/local/lib/" >> /etc/ld.so.conf
/sbin/ldconfig
  • Remove all the rpm you just installed
rpm -qa | grep myth | xargs rpm -e
  • Now reinstall mythlib so yum will keep it updated
yum -y install mythlib

Compile & Install Mythtv[edit | edit source]

Run the following line by line & look for errors.

cd /tmp/svn/mythtv
make distclean
./configure --prefix=/usr/local --with-bindings=perl --disable-firewire --disable-dbox2 --disable-hdhomerun \
--enable-xvmc-opengl --enable-xvmc --enable-opengl-vsync
qmake PREFIX=/usr/local mythtv.pro
make
/sbin/service mythbackend stop
make install
cp etc.sysconfig.mythbackend /etc/sysconfig/mythbackend
cp etc.rc.d.init.d.mythbackend /etc/rc.d/init.d/mythbackend
chmod a+x /etc/rc.d/init.d/mythbackend
echo "/usr/local/lib" >> /etc/ld.so.conf
/sbin/service mythbackend start

Compile & Install MythPlugins[edit | edit source]

cd /tmp/svn/mythplugins
make distclean
./configure --prefix=/usr/local --enable-faad --enable-aac --disable-mythbrowser --disable-mythflix \
--disable-mythgallery --disable-mythgame --disable-mythnews --disable-mythphone --disable-mythweather \
--zm-version=1.22.3
qmake PREFIX=/usr/local mythplugins.pro
make
make install
rm -rf /var/www/html/mythweb
cp -r mythweb /var/www/html/
chown -R apache:apache /var/www/html/mythweb

Compile & Install MythThemes[edit | edit source]

cd /tmp/svn/myththemes
make distclean
./configure --prefix=/usr/local
make
make install

Configuring Mythtv[edit | edit source]

In order for mythbackend to create a pid file when the daemon is started you will need to change /etc/rc.d/init.d/mythbackend and add some lines

vim /etc/rc.d/init.d/mythbackend
  • change the user to mythtv
  • change the log file to /var/log/mythtv/mythbackend.log
  • add -p /var/run/mythbacken.pid to the end of the daemon command.

Once you have saved the file then.

  • create & setup the log directory
mkdir -p /var/log/mythtv
chown mythtv:mythtv /var/log/mythtv
  • setup the run directory
chmod 777 /var/run/
  • setup the /dev/video files
chown mythtv:mythtv /dev/vid*
  • get mythbackend to start when the system starts
/sbin/chkconfig mythbackend on
/sbin/service mythbackend restart