Project

General

Profile

Development » History » Revision 4

Revision 3 (Adam Sutton, 2013-12-28 23:48) → Revision 4/5 (Adam Sutton, 2013-12-28 23:50)

h1. Development 

 If you are intending to do Tvheadend development or simply self-building / testing then this page gives a few useful hints and tips. 

 h2. Environment 

 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. 

 You will need to give your user account the necessary permissions to access the DVB hardware: 

 <pre> 
 sudo usermod -a -G video $(id -nu) 
 </pre> 

 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: 

 <pre> 
 sudo cp -a ~hts/.hts/tvheadend/ ./test-conf 
 sudo chown -R $(id -nu):$(id -ng)    ./test-conf 
 </pre> 

 Enable coredumps (this is best put in shell init script): 

 <pre> 
 ulimit -c unlimited 
 </pre> 

 You should now be able to run tvheadend as yourself (remember to turn off the main tvheadend service): 

 <pre> 
 mkdir -p test-conf 
 ./build.linux/tvheadend -c ./test-conf 
 </pre> 

 h2. [[Debugging]] 

 For more general information about debugging please read this [[Debugging|page]].