Project

General

Profile

Development » History » Version 5

Adam Sutton, 2014-05-01 22:56

1 1 Adam Sutton
h1. Development
2
3
If you are intending to do Tvheadend development or simply self-building / testing then this page gives a few useful hints and tips.
4
5
h2. Environment
6
7
If you intend to build and test tvheadend its recommended that you do this as your own user, it'll make things a lot easier and can help isolate a test build from your main live build.
8
9
You will need to give your user account the necessary permissions to access the DVB hardware:
10
11
<pre>
12
sudo usermod -a -G video $(id -nu)
13
</pre>
14
15
If you already have an existing configuration you might consider taking a copy of this to give you a realistic data set without tainting your main config:
16
17
<pre>
18
sudo cp -a ~hts/.hts/tvheadend/ ./test-conf
19
sudo chown -R $(id -nu):$(id -ng)  ./test-conf
20
</pre>
21
22 4 Adam Sutton
Enable coredumps (this is best put in shell init script):
23
24
<pre>
25
ulimit -c unlimited
26
</pre>
27
28 1 Adam Sutton
You should now be able to run tvheadend as yourself (remember to turn off the main tvheadend service):
29
30
<pre>
31 2 Adam Sutton
mkdir -p test-conf
32 1 Adam Sutton
./build.linux/tvheadend -c ./test-conf
33
</pre>
34
35 3 Adam Sutton
h2. [[Debugging]]
36 1 Adam Sutton
37 3 Adam Sutton
For more general information about debugging please read this [[Debugging|page]].
38 5 Adam Sutton
39
h2. Submitting changes
40
41
If you wish to submit fixes or features to Tvheadend then you will need to sign up for a "GitHub":https://github.com account.
42
43
All submissions must be made in the form of GitHub Pull Requests (PRs for short).
44
45
Also before you can send a submission, you must first read the [[Contributors|Contributors page]] regarding licensing.