Project

General

Profile

Tvheadend compiling on Debian

Added by Mike Peters almost 10 years ago

Hi im trying to compile tvheadend on my debian but im getting these errors below. Anyone know how I can fix it so i can use the make and then make install?

root@debian:/tvheadend/tvheadend# make
CC src/uuid.o
In file included from /usr/include/bits/errno.h:25,
from /usr/include/errno.h:36,
from src/tvheadend.h:27,
from src/uuid.c:20:
/usr/include/linux/errno.h:4:23: error: asm/errno.h: No such file or directory
In file included from /usr/include/sys/socket.h:40,
from /usr/include/netinet/in.h:25,
from src/tvheadend.h:28,
from src/uuid.c:20:
/usr/include/bits/socket.h:370:24: error: asm/socket.h: No such file or directory
In file included from src/uuid.c:20:
src/tvheadend.h: In function âlock_assert0â:
src/tvheadend.h:127: error: âEBUSYâ undeclared (first use in this function)
src/tvheadend.h:127: error: (Each undeclared identifier is reported only once
src/tvheadend.h:127: error: for each function it appears in.)
src/uuid.c: In function âuuid_init_binâ:
src/uuid.c:121: error: âEINVALâ undeclared (first use in this function)
make: *** [/tvheadend/tvheadend/build.linux/src/uuid.o] Error 1
root@debian:/tvheadend/tvheadend#


Replies (4)

RE: Tvheadend compiling on Debian - Added by Alfred Zastrow almost 10 years ago

Are you trying to cross-compile tvh? Then you (maybe) have to have gcc-multilib. On a reglar Debian Jessie is no /usr/include/bits/...

root@tvh:~# dpkg -S /usr/include/bits/socket.h
dpkg-query: Kein Pfad gefunden, der auf Muster /usr/include/bits/socket.h passt
root@tvh:~#

br
Alfred

RE: Tvheadend compiling on Debian - Added by Mike Peters almost 10 years ago

Thanks Alfred im a newbie to compiling... Has anyone got a guide or a compiled tvheadend for debian with arch i686?

RE: Tvheadend compiling on Debian - Added by Eric Valette almost 10 years ago

Given the problem you have, you haven't probably compiled anything on debian that use libc includes that dives into kernel include. First you need to have a working development environment including relevant include file...

So you need first to prepare your system for developemnt. If you never installed tvheadend you have at least the following library dependencies (you need ffmpeg/libav includes if you plan do to transcoding):

Depends: libavahi-client3 (>= 0.6.16), libavahi-common3 (>= 0.6.16), libc6 (>= 2.14), libdbus-1-3 (>= 1.0.2), libhdhomerun1, libssl1.0.0 (>= 1.0.0), liburiparser1 (>= 0.6.0), zlib1g (>= 1:1.1.4)

But for compiling you need th -dev version of each libraries : eg libc6 -> libc6-deb, libdbus-1-3 -> libdbus-1-dev and so on.

Then instead of using make like you did you should use in root directory

./Autobuild.sh -t debian

RE: Tvheadend compiling on Debian - Added by Prof Yaffle almost 10 years ago

Building instructions here:

https://tvheadend.org/projects/tvheadend/wiki/Building

Also, is there any reason you're compiling and not using the PPA? Is there a specific feature you need to compile in (e.g. transcoding) that you're uncertain of? I don't know if there are Jessie builds, but you should be able to use the Wheezy ones or even the Ubuntu ones if necessary.

Otherwise, EricV is right - use Autobuild. That will generate the .deb files which you can then install with dpkg.

    (1-4/4)