Project

General

Profile

Building » History » Version 28

Anders Gustafsson, 2018-01-14 12:39

1 1 Adam Sutton
h1. Building
2
3 2 Adam Sutton
h2. Prerequisites
4
5 3 Adam Sutton
Before you can build Tvheadend you will need several packages installed on your development machine. 
6 2 Adam Sutton
7
The specific details will vary between distributions so we only cover the major ones here.
8
9
h3. Debian/Ubuntu
10
11
<pre>
12 7 Adam Sutton
$ sudo aptitude install build-essential git pkg-config libssl-dev bzip2 wget
13 2 Adam Sutton
</pre>
14
15
> Optional:
16
<pre>
17 26 Jaroslav Kysela
$ sudo aptitude install libavahi-client-dev zlib1g-dev libavcodec-dev libavutil-dev libavformat-dev libswscale-dev libavresample-dev
18 2 Adam Sutton
</pre>
19
20 17 Bob Lightfoot
h3. Redhat / Centos / Fedora
21 2 Adam Sutton
22 18 Bob Lightfoot
h4. Redhat/Centos/Fedora Build assumptions
23 13 Bob Lightfoot
24 12 Bob Lightfoot
<pre>
25 25 Jaroslav Kysela
Redhat/Centos/Fedora are a package managed OS and as such tvheadend should be installed from an rpm on a production system.
26
But you may run tvheadend from the build tree, of course.
27 12 Bob Lightfoot
</pre>
28 13 Bob Lightfoot
29 24 Bob Lightfoot
<pre>
30 25 Jaroslav Kysela
sudo yum groups install "C Development Tools and Libraries"
31
sudo yum install zlib-devel avahi-devel dbus-devel openssl-devel python
32 12 Bob Lightfoot
</pre>
33 2 Adam Sutton
34
h3. Gentoo
35
36
TODO: this needs adding
37
38 27 Anders Gustafsson
h3. Open SuSE
39
40
You need to install:
41
Install:
42
git
43
make
44
gcc
45
dvbv-devel
46
gettext-toools
47
libopenssl-devel
48
libavahi-devel
49
liburiparser-devel
50
packman-essentials
51
packman-multimedia
52
53
54
55
56 2 Adam Sutton
h2. Get Source
57
58
Next you must obtain the source code, this is hosted on "github":https://github.com/tvheadend/tvheadend.
59
60
To clone the repository simple run the command:
61
62
<pre>
63
$ git clone https://github.com/tvheadend/tvheadend.git
64
</pre>
65
66
h2. Configuring
67
68
TVHeadend comes with a configuration script that allows you to enable/disable optional components and set install paths, etc.
69
70
Most people will be fine with the defaults and can run:
71
72
<pre>
73
$ ./configure
74
</pre>
75
76
However for more advanced options, please run the following:
77
78
<pre>
79
$ ./configure --help
80
</pre>
81
82
And then re-run configure with the required options, i.e.:
83
84
<pre>
85 10 John Törnblom
$ ./configure --disable-dvbscan
86 2 Adam Sutton
</pre>
87
88 28 Anders Gustafsson
For more information about Tvheadend configuration options please see [[ConfigurationOptions|here]]
89
90 2 Adam Sutton
h2. Compiling
91
92 3 Adam Sutton
To compile Tvheadend run:
93 2 Adam Sutton
94
<pre>
95
$ make
96
</pre>
97
98
h2. Installing
99
100 3 Adam Sutton
It is possible to install Tvheadend using make, based on the ./configure options, by running:
101 2 Adam Sutton
102
<pre>
103
$ sudo make install
104
</pre>
105
106 11 Adam Sutton
However it's recommend that you run from the build directory for development/testing (see [[Development]]):
107 2 Adam Sutton
108
<pre>
109
$ ./build.linux/tvheadend
110
</pre>
111
112 4 Adam Sutton
NOTE: its VERY important you run test builds from git root, so command should look similar to above.
113
114 3 Adam Sutton
And that you build a [[Packaging|package]] if you wish to install Tvheadend permanently and hook into the system start scripts etc.
115 2 Adam Sutton
116
Use of make install is not very traceable and so removal can sometimes be painful, and it might overwrite an existing installation.
117
118
h2. Packaging
119
120 3 Adam Sutton
For more information about packaging Tvheadend please see [[Packaging|here]]
121 2 Adam Sutton
122
h2. Reporting Problems
123
124 3 Adam Sutton
If you have problems with a custom compiled version of Tvheadend its important that any issue reports include details of the specific version of source you used. For more details please see [[bugreporting|here]].