MythMusic Installation

From MythTV

Jump to: navigation, search

This is a place holder for a subpage to the MythMusic Documentation which I plan to overhaul over Christmas 2007--Mikec 15:17, 16 December 2007 (UTC)

Contents

MythMusic Install

Here we will go through the install process for MythMusic.

Prerequisites

Image:Package.png The prerequisites for MythMusic are:

  • MAD
  • id3tag (Replaced by Taglib in 0.21)
  • libvorbis-devel
  • FLAC
  • libcdaudio
  • CDParanoia
  • libfftw (if you want to enable FFTW, used for visualizations...)
  • faad2 (if you want to enable AAC support)

Manual Install of Prerequisites

These instructions are for distributions which don't have pre-compiled versions of the software necessary to run MythTV.

Download MAD and libid3tag from http://www.underbit.com/products/mad/ Follow the link to download via FTP and save the files to a directory you can find later.

   $ tar -xzf mad-0.15.1b.tar.gz
   $ cd mad-0.15.1b
   $ ./configure
   $ make
   $ su
   # make install
   # exit
   $ cd ..
   $ tar -xzf libid3tag-0.15.1b.tar.gz
   $ cd libid3tag-0.15.1b
   $ ./configure
   $ make
   $ su
   # make install
   # exit
   $ cd ..

Download FLAC from http://flac.sourceforge.net and install:

   $ tar -xzf flac-1.1.2.tar.gz
   $ cd flac-1.1.2
   $ ./configure
   $ make
   $ su
   # make install
   # exit
   $ 

Download libcdaudio from http://libcdaudio.sourceforge.net and install:

   $ tar -xzf libcdaudio-0.99.12p2.tar.gz
   $ cd libcdaudio-0.99.12p2
   $ ./configure
   $ make
   $ su
   # make install
   # exit
   $ 

Download cdparanoia from http://www.xiph.org/paranoia/down.html.

   $ tar -xzf cdparanoia-III-alpha9.8.src.tgz
   $ cd cdparanoia-III-alpha9.8
   $ ./configure
   $ make
   $ su
   # make install
   # cd /usr/lib
   # ln -sf libcdda_interface.so.0.9.8 libcdda_interface.so
   # ln -sf libcdda_paranoia.so.0.9.8 libcdda_paranoia.so
   # exit
   $

If enabling FFTW (used by some visualizations), download fftw from http://www.fftw.org/download.html (Note the options added to ./configure. They are necessary to create the dynamic libraries required by MythMusic.)

   $ tar -xzf fftw-3.1.2.tar.gz
   $ cd fftw-3.1.2
   $ ./configure --enable-float --enable-threads
   $ make
   $ su
   # make install
   # exit
   $

If enabling AAC support, download faad2 from http://www.audiocoding.com/downloads.html.

   $ tar -xzf faad2-2.6.1.tar.gz
   $ cd faad2
   $ autoreconf -vif

By default, faad2 does not install the libmp4ff library which is needed by MythMusic. To change this, open common/mp4ff/Makefile.am in an editor and replace this line:

   noinst_LTLIBRARIES = libmp4ff.la

with this:

   lib_LTLIBRARIES = libmp4ff.la
   
   include_HEADERS = mp4ff.h

Then open common/mp4ff/mp4ff.h in an editor and replace this line:

   #include "mp4ff_int_types.h"

with this:

   #include <stdint.h>

finally

   $ ./configure --with-mp4v2
   $ make
   $ su
   # make install
   # exit
   $

Distro Specific

Debian (or derivative)

As root run:

   # apt-get update
   # apt-get install libmad0 libmad0-dev libflac8 libflac-dev libcdaudio1 cdparanoia fftw3 fftw3-dev
   # apt-get install libcdda0 libcdda0-dev libvorbis0 libvorbis0-dev libcdaudio1-dev libid3tag0 libid3tag0-devel

Gentoo

As root:

  # emerge --sync
  # emerge -av mythmusic

Mandriva

Mandriva has a number of the prerequisites available on the installation CD. Some of the software you're going to need will have to be obtained from the "contrib" or "cooker" development repositories. Applications downloaded from "cooker" come from the development branch, so there may be issues with some software. It isn't recommended that you mix cooker and release-level software.

urpmi is the simplest tool for installation of packages from the command line. The difficult part is the configuration, but this has been made easier at the following website: http://addmedia.linuxfornewbies.org/ The website will allow you to choose a mirror site and then present the command-line configuration text for that mirror. You will most likely need to add a "Contrib" mirror to your setup. Once you have done that, you can proceed. If urpmi prompts you about other modules that need to be installed to satisfy dependencies, say "Yes".

   # urpmi libmad0 libmad0-devel libflac4 libflac4-devel libcdaudio1 cdparanoia
   # urpmi libcdda0 libcdda0-devel libvorbis0 libvorbis0-devel
   # urpmi libcdaudio1-devel libid3tag0 libid3tag0-devel

Additional options with MythMusic

Additional visualizations have been added to MythMusic. If you wish to use these, there are some prerequisites you must install prior to compiling.

  • fftw
  • OpenGL
  • SDL

fftw may be obtained from http://www.fftw.org/. In Mandriva it may be installed by typing:

   # urpmi libfftw2 libfftw2-devel

OpenGL should be installed on practically all distributions. However, you will need the devel module. In Mandriva it may be installed by typing:

   # urpmi libMesaGLU1-devel

SDL may be obtained from http://www.libsdl.org. In Mandriva it may be installed by typing:

   # urpmi libSDL1.2 libSDL1.2-devel

Redhat 9

Red Hat provides packages for several of the prerequisites, making installation very simple. Of the prerequisites, Red Hat provides packages for Vorbis, cdparanoia, SDL, and OpenGL (which you probably already have installed). To install these all at once, simply type (all on the same line):

   $ up2date --solvedeps libvorbis libvorbis-devel vorbis-tools cdparanoia-devel cdparanoia-libs cdparanoia SDL-devel SDL

If you get the following message: "None of the packages you requested were found, or they are already updated" it probably means you already have all of those packages installed.

You must install the remaining packages, (MAD, FLAC, libcdaudio and optionally fftw) manually following the installation directions above. When installing fftw do not use the rpm package offered on the website because it will cause an error, so use the source package instead.

Slackware

Slackware provides packages for the following prerequisites:

  • libmad
  • libid3tag
  • libvorbis
  • flac
  • cdparanoia

For the rest of the prereq's (libcdaudio, fftw, faad2), follow the manual installation instructions above.

Compiling MythMusic

Once all the prerequisites have been installed, you can proceed with compiling MythMusic.

   $ cd ~/mythplugins-0.19
   $ ./configure --disable-all --enable-mythmusic --enable-fftw --enable-sdl --enable-aac
   $ qmake mythplugins.pro
   $ make
   $ su
   # make install
   # exit


  • taken from mythtv.org documentation.
Personal tools