Project

General

Profile

Problems building from git on a Raspberry Pi 2

Added by Stephen Neal almost 9 years ago

Hi all

Trying a new build on a Raspbian Jessie Lite install on a Raspberry Pi 2. Have previously done this many times with no problems following the instructions here : https://tvheadend.org/projects/tvheadend/wiki/Building

When I try it at the moment I get an error - which appears to be in downloading an ffmpeg binary?

make[1]: Entering directory '/home/pi/tvheadend'
DOWNLOAD https://dl.bintray.com/tvheadend/misc/staticlib//armv7l/ffmpeg-8e6583f5667e125a3053533bdb8f39698d0d68b9.tgz
--2016-01-23 13:18:45-- https://dl.bintray.com/tvheadend/misc/staticlib//armv7l/ffmpeg-8e6583f5667e125a3053533bdb8f39698d0d68b9.tgz
Resolving dl.bintray.com (dl.bintray.com)... 5.153.35.248, 159.122.18.156
Connecting to dl.bintray.com (dl.bintray.com)|5.153.35.248|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-01-23 13:18:45 ERROR 404: Not Found.

This then appears to mean that a full ffmpeg build takes place? (Which takes rather a long time)

Am I doing something wrong?


Replies (6)

RE: Problems building from git on a Raspberry Pi 2 - Added by Mark Clarkstone almost 9 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
./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 Runs the Autobuild script that will build a debian package so that you can install it in a nice and neat way.

AUTOBUILD_CONFIGURE_EXTRA=--enable-libffmpeg_static ./Autobuild.sh if you want transcoding

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

RE: Problems building from git on a Raspberry Pi 2 - Added by Stephen Neal almost 9 years ago

Thanks Mark, but that method appears to do the same thing I was doing in a different way, and hits the same error :

DOWNLOAD https://dl.bintray.com/tvheadend/misc/staticlib/trusty/amd64/ffmpeg-c4f1ee52532da95205e87c47f0f21affe23e5d7a.tgz
--2016-01-24 10:03:07-- https://dl.bintray.com/tvheadend/misc/staticlib/trusty/amd64/ffmpeg-c4f1ee52532da95205e87c47f0f21affe23e5d7a.tgz
Resolving dl.bintray.com (dl.bintray.com)... 5.153.35.248, 159.122.18.156
Connecting to dl.bintray.com (dl.bintray.com)|5.153.35.248|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-01-24 10:03:07 ERROR 404: Not Found.

This then causes a full ffmpeg build to take place ?

I've tried it on both Raspberry Pi 2 and an Intel x86 system, both give the same message - albeit with different architectures and distros. Looks like something wrong with the URL - or the builds they point to are no longer there?

RE: Problems building from git on a Raspberry Pi 2 - Added by Stephen Neal almost 9 years ago

Just like to say thanks Mark. Tried your instructions on an x86 box which I also needed a new version of TVHeadend on. Worked a treat. The IPTV Automatic Network option (That allows m3u files/URLs to be used) is a really useful addition.

RE: Problems building from git on a Raspberry Pi 2 - Added by spyer spyer over 8 years ago

Hello Mark Clarkstone,

I have followed your instructions, but there comes an error message, if I will to run AUTOBUILD_CONFIGURE_EXTRA=--enable-libffmpeg_static ./Autobuild.sh


dpkg-buildpackage: source package tvheadend
dpkg-buildpackage: source version 4.1-1777~gff9dab0
dpkg-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 -- --enable-libffmpeg_static
        ./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 --enable-libffmpeg_static
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 ...                            fail
ERROR: cmake 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 --enable-libffmpeg_static 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: Problems building from git on a Raspberry Pi 2 - Added by Mark Clarkstone over 8 years ago

sudo apt-get install cmake
should fix it..

RE: Problems building from git on a Raspberry Pi 2 - Added by spyer spyer over 8 years ago

Hello Mark Clarkstone,

thank you for your commitment.
With these lines I have install tvheadend with transconding h264 and vp8.

AUTOBUILD_CONFIGURE_EXTRA=--enable-libffmpeg_static ./Autobuild.sh

sudo apt-get update -y

sudo apt-get install git build-essential debhelper pkg-config fakeroot libavahi-client-dev libssl-dev libcurl4-gnutls-dev liburiparser-dev cmake xmlto -y

git clone https://github.com/tvheadend/tvheadend.git build/tvheadend/master

cd build/tvheadend/master

AUTOBUILD_CONFIGURE_EXTRA=--enable-libffmpeg_static ./Autobuild.sh

cd /home/pi/build/tvheadend

sudo dpkg -i tvheadend*.deb

But I have a problem with "pre-defined muxes". It is empty.
How can I install the muxes to try streamining with transconding?
Specifically DVB-C in Germany.

Best wishes
Spyer
Edit/Solved:
After a restart, the muxes are back.

    (1-6/6)