Compiling Rivendell from Source

From Rivendell Wiki

Jump to: navigation, search

While these instructions are written with SuSE in mind, the process should be very similar for other flavors of Linux. The following instructions are largely based on Appnote0004 by Fred Gleason

Contents

Packages to install in YaST (Suse 10.x) Software Management:

Set Filter to search and install these packages:

cvs
kernel-source
gcc
autoconf
make
automake
bzip2
libtool

Install the following development packages:

qt3-devel
qt3-devel-tools
alsa-devel
jack-devel
hpklinux-devel
libogg-devel
libvorbis-devel
id3lib-devel
flac-devel
libsamplerate-devel

Packages to install in apt (Debian/Ubuntu):

sudo apt-get install build-essential libqt3-* qt3-dev* libid3-dev libflac-dev linux-headers-`uname -r` libogg-dev 
                     libvorbis-dev libasound2-dev libsamplerate-dev


Note: the list of packages needed for install and use of Rivendell can be found in the "control" file in the "debian" directory of rivendell source package (if you see a | separator between two packages: package1 | package2 means package1 OR package2)

Additional Packages

Two additional source packages hpklinux and gpio can be downloaded from the Rivendell download page (the version numbers shown in these examples may have changed since this writing): here

Unpack gpio using the command:

  tar -zxvf gpio-1.0.0.tar.gz

Unpack hpklinux using the command:

  tar -jxvf hpklinux-3.08.05.tar.bz2

Rivendell Source Download Links

Unpack Rivendell Source

Unpack rivendell using the command:

  tar -zxvf  rivendell-1.1.0.tar.gz

Required for QT3:

The QTDIR and PATH variables need to be properly set up in your build environment. You may need to put the following into your ~/.bashrc if $QTDIR and $PATH are not already properly configured:

export QTDIR=/usr/lib/qt3
export PATH=$PATH:$QTDIR/bin

Open a new shell by logging out, then in again, and you should be in business.

Update the Rivendell Package Version

The Rivendell version is that of the last package release. Edit the Rivendell package version if you are compling an unreleased or modified source package.

Edit the file 'PACKAGE_VERSION' in the Rivendell source directory. This file contains a single line showing the version number (e.g. '1.1.0') with NO carriage return after it. Simply change it, then do the following command:

 ./autogen.sh

Compile gpio

as regular user (Not root):

 cd gpio-1.0.0
 ./configure
 make 
   #or "make rpm" if you would like to create your own RPMs
   #continue only if you wish to install on this PC
 su        [enter root password]
 make install
 ldconfig
 exit
 cd ..

Compile hpklinux

as regular user (Not root):

 cd hpklinux-3.08.05
 ./configure
 make
      #or "make rpm" if you would like to create your own RPMs
      #continue only if you wish to install on this PC
 su        [enter root password]
 make install
 ldconfig
 exit
 cd ..

Compile Rivendell

As regular user (Not root):

cd rivendell
./autogen.sh
./configure
      #if making your own RPMs, you may need to specify a path for libexecdir, e.g. ./configure --libexecdir=/srv/www/rd-bin
make 
      #or "make rpm" if you would like to create your own RPMs.
      #continue only if you wish to install on this PC
su       [enter root password]
make install
ldconfig
Personal tools