Forums » Tutorial and setups »
RaspberryPi 2 + TvHeadend
Added by piotr w about 9 years ago
Hi,
I want to switch from a Ubuntu server PC to RaspberryPi 2. I've got all the hardware (2 usb DVB-C tuners, Phoenix smartcard reader). I now want to setup a RPI2 with Tvheadend and Oscam.
My questions:
- What would be the best distro to use ?
- I want to use the 4.x branch of TvHeadend. This means installing from GIT and compiling on the RPI ?
Thanks !
Replies (6)
RE: RaspberryPi 2 + TvHeadend - Added by Mark Clarkstone about 9 years ago
Raspbian? the Net install is pretty decent.
Quick & Easy guide to building Tvheadend on a RPi2.
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 ./Autobuild.shWhat 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 Runs the Autobuild script that will build a debian package so that you can install it in a nice and neat way.
Other info.
The Autobuild.sh script will complain about other missing dependencies you need to install those (using sudo apt-get install) and then 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
Be aware that because of USB bus sharing you may run into issues with streaming as the bus can easily be overwhelmed.
RE: RaspberryPi 2 + TvHeadend - Added by C vH about 9 years ago
OpenElec (6.0 Beta), Tvheadend and OSCAM are available as addons (at unofficial repo) - no compiling just click and enabling.
Latest Tvh are also available at http://goo.gl/833OO2
RE: RaspberryPi 2 + TvHeadend - Added by piotr w about 9 years ago
I'm running a tvheadend on a dedicated server (rpi2, Debian Jessie.). My frontends are openelec.
RE: RaspberryPi 2 + TvHeadend - Added by sharky :-) over 8 years ago
Autobuild not working .
System RaspberryPi3 + Debian Jessy
pkg-buildpackage: source distribution unstable dpkg-buildpackage: source changed by Andreas Öman <[email protected]> dpkg-buildpackage: host architecture armhf dpkg-source --before-build master fakeroot debian/rules clean dh clean dh_testdir dh_clean rm -f debian/tvheadend.substvars rm -f debian/tvheadend.*.debhelper rm -rf debian/tvheadend/ rm -f debian/tvheadend-dbg.substvars rm -f debian/tvheadend-dbg.*.debhelper rm -rf debian/tvheadend-dbg/ rm -f debian/*.debhelper.log rm -f debian/files find . \( \( \ \( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS \) -prune -o -type f -a \ \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \ -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \ -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \ -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \ \) -exec rm -f {} + \) -o \ \( -type d -a -name autom4te.cache -prune -exec rm -rf {} + \) \) debian/rules build dh build dh_testdir debian/rules override_dh_auto_configure make[1]: Entering directory '/home/pi/build/tvheadend/master' dh_auto_configure -- ./configure --build=arm-linux-gnueabihf --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-silent-rules --libexecdir=\${prefix}/lib/tvheadend --disable-maintainer-mode --disable-dependency-tracking Checking support/features checking for cc execinfo.h ... ok checking for cc -mmmx ... fail checking for cc -msse2 ... fail checking for cc -Wunused-result ... ok checking for cc getloadavg ... ok checking for cc atomic64 ... ok checking for cc atomic_time_t ... ok checking for cc lockowner ... ok checking for cc qsort_r ... ok checking for cc stime ... ok checking for cc gmtoff ... ok checking for cc recvmmsg ... ok checking for cc sendmmsg ... ok checking for cc libiconv ... fail checking for cc libdvben50221 ... fail checking for cc ifnames ... ok checking for py module gzip ... ok checking for pkg-config ... ok checking for xgettext ... ok checking for msgmerge ... ok checking for gzip ... ok checking for bzip2 ... ok checking for pkg openssl ... ok (detected 1.0.1k) checking for cc linux/dvb/version.h ... ok checking for pkg zlib ... ok (detected 1.2.8) checking for pkg liburiparser ... ok (detected 0.8.0.1) checking for pkg avahi-client ... ok (detected 0.6.31) checking for cmake ... ok checking for cc -lstdc++ ... fail ERROR: libstdc++ not found dh_auto_configure: ./configure --build=arm-linux-gnueabihf --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-silent-rules --libexecdir=${prefix}/lib/tvheadend --disable-maintainer-mode --disable-dependency-tracking returned exit code 1 debian/rules:8: recipe for target 'override_dh_auto_configure' failed make[1]: *** [override_dh_auto_configure] Error 2 make[1]: Leaving directory '/home/pi/build/tvheadend/master' debian/rules:5: recipe for target 'build' failed make: *** [build] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2
RE: RaspberryPi 2 + TvHeadend - Added by C vH over 8 years ago
ERROR: libstdc++ not found
sudo apt-get install libstdc++6
RE: RaspberryPi 2 + TvHeadend - Added by sharky :-) over 8 years ago
Thank for pointing to the right direction. Don't know how I could not see this error , but it is not as easy as you said.
pi@raspberrypi:~ $ sudo apt-get install libstdc++6 Reading package lists... Done Building dependency tree Reading state information... Done *libstdc++6 is already the newest version.* The following packages were automatically installed and are no longer required: libogg0 libtheora0 libvorbis0a libvorbisenc2 Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 46 not upgraded.
Odd.
Used sudo apt-get install libstdc++6-4.7-dev instead and it starts building.