Building » History » Version 27
Anders Gustafsson, 2018-01-14 12:38
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 | h2. Compiling |
||
89 | |||
90 | 3 | Adam Sutton | To compile Tvheadend run: |
91 | 2 | Adam Sutton | |
92 | <pre> |
||
93 | $ make |
||
94 | </pre> |
||
95 | |||
96 | h2. Installing |
||
97 | |||
98 | 3 | Adam Sutton | It is possible to install Tvheadend using make, based on the ./configure options, by running: |
99 | 2 | Adam Sutton | |
100 | <pre> |
||
101 | $ sudo make install |
||
102 | </pre> |
||
103 | |||
104 | 11 | Adam Sutton | However it's recommend that you run from the build directory for development/testing (see [[Development]]): |
105 | 2 | Adam Sutton | |
106 | <pre> |
||
107 | $ ./build.linux/tvheadend |
||
108 | </pre> |
||
109 | |||
110 | 4 | Adam Sutton | NOTE: its VERY important you run test builds from git root, so command should look similar to above. |
111 | |||
112 | 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. |
113 | 2 | Adam Sutton | |
114 | Use of make install is not very traceable and so removal can sometimes be painful, and it might overwrite an existing installation. |
||
115 | |||
116 | h2. Packaging |
||
117 | |||
118 | 3 | Adam Sutton | For more information about packaging Tvheadend please see [[Packaging|here]] |
119 | 2 | Adam Sutton | |
120 | h2. Reporting Problems |
||
121 | |||
122 | 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]]. |