Project

General

Profile

How to compile tvheadend for Raspberry Pi?

Added by timo nein almost 11 years ago

Hello,

I'd like to test the new versions on the Raspberry Pi (wheezy). The latest version on http://apt.tvheadend.org/unstable seems to be version 3.5.139~g767f824~wheezy.

Do I need special compile options?

I normally would do

git clone --depth 1 https://github.com/tvheadend/tvheadend.git
./configure
./make

and copy the resulting file to the binary directory. But it didn't work (white web interface).

Could you please help me compiling (or updating the apt unstable repository).

Thanks and best regards,
Timo


Replies (9)

RE: How to compile tvheadend for Raspberry Pi? - Added by Alessio Pollero over 8 years ago

Same issue for me, anyone can help ?

RE: How to compile tvheadend for Raspberry Pi? - Added by Mark Clarkstone over 8 years ago

Quick & Easy guide to building Tvheadend on a RPi2 (This also works on any other deb system!).

sudo apt-get install git build-essential debhelper pkg-config fakeroot
git clone https://github.com/tvheadend/tvheadend.git build/tvheadend/master
cd build/tvheadend/master
##### If you do not want unstable run the following line #####
git checkout release/4.0
##### If you do not want unstable run the above line #####
AUTOBUILD_CONFIGURE_EXTRA=--enable-hdhomerun_client\ --enable-ffmpeg_static\ --disable-bintray_cache ./Autobuild.sh
What each lines does.
  • 1 Installs a few dependencies (you'll need to install some more later on).
  • 2 Clones the Tvheadend master branch from github & places it in build/tvheadend/master.
  • 3 Changes directory to the above path.
  • 4 (optional) changes source to release/4.0.
  • 5 Runs the Autobuild script that will build a debian package so that you can install it in a nice and neat way.

You can pass more options to AUTOBUILD_CONFIGURE_EXTRA just make sure to place an escaped space between each option, e.g.

AUTOBUILD_CONFIGURE_EXTRA=--enable-hdhomerun_client\ --disable-ffmpeg_static ./Autobuild.sh

A list of build options can be found by running (in the source directory).

Note that the Raspberry Pi is not powerful enough to do transcoding via the cpu, disabling ffmpeg during your build will reduce the time needed to build..

./configure --help

The Autobuild.sh script will complain about other missing dependencies you need to install those, e.g.

sudo apt-get install libcurl14-gnutls-dev liburiparser-dev

Run the script again.

Once the build has completed you'll find the built debian package (E.g tvheadend_4.1-368~geeda7d7_armhf.deb) in build/tvheadend.

You can then install it (and the debug package) using.

cd build/tvheadend
sudo dpkg -i tvheadend*.deb

You may need to do the following on some systems with systemd, if the service doesn't start after install.

sudo systemctl disable tvheadend
sudo systemctl enable tvheadend
sudo systemctl start tvheadend

RE: How to compile tvheadend for Raspberry Pi? - Added by Neil Carter over 8 years ago

Greetings:

Could you add some suggestions on a simple method of keeping a backup of your current build in case the new one fails?

Thanks!

Neil

RE: How to compile tvheadend for Raspberry Pi? - Added by Mark Clarkstone over 8 years ago

Neil Carter wrote:

Greetings:

Could you add some suggestions on a simple method of keeping a backup of your current build in case the new one fails?

Keep the deb package and install it using dpkg -i <package>.deb. This will override the currently installed version.

Warning: There is no guarantee that an older build will work with a newer (migrated) config from a newer build.

Thanks!

Neil

RE: How to compile tvheadend for Raspberry Pi? - Added by Stefan N. almost 8 years ago

What do I have to change to get the last stable build for Raspbian? 4.0 is release, but quite old, or is master the same as stable build?

RE: How to compile tvheadend for Raspberry Pi? - Added by Mark Clarkstone almost 8 years ago

Stefan N. wrote:

What do I have to change to get the last stable build for Raspbian? 4.0 is release, but quite old, or is master the same as stable build?

The 4.0 branch is stable with fixes. Release is taken from this branch.
The master branch is unstable 4.1 (dev) that'll eventually be 4.2 release.

RE: How to compile tvheadend for Raspberry Pi? - Added by Stefan N. over 7 years ago

I tried this today on my RPi3, but when executing

AUTOBUILD_CONFIGURE_EXTRA=--enable-hdhomerun_client\ --enable-ffmpeg_static\ --disable-bintray_cache ./Autobuild.sh

I only got the following:

dpkg-checkbuilddeps: Nicht erfüllte Bauabhängigkeiten: libavahi-client-dev libssl-dev libcurl4-gnutls-dev liburiparser-dev cmake
dpkg-buildpackage: Warnung: Bauabhängigkeiten/-konflikte nicht erfüllt; Abbruch
dpkg-buildpackage: Warnung: (Verwenden Sie -d, um sich darüber hinwegzusetzen.)

What do I have to do?

RE: How to compile tvheadend for Raspberry Pi? - Added by Joe User over 7 years ago

try:

sudo apt-get install libavahi-client-dev libssl-dev libcurl4-gnutls-dev liburiparser-dev cmake

and try again...

RE: How to compile tvheadend for Raspberry Pi? - Added by Stefan N. over 7 years ago

Yes, that works, thx.
I've seen it is also mentioed in the guide at some place, but the instructions seem to be in wrong order so I was not sure about what I actually had to do...

    (1-9/9)