HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: PVR & Live TV Support (https://forum.kodi.tv/forumdisplay.php?fid=167) +---- Forum: Tvheadend (https://forum.kodi.tv/forumdisplay.php?fid=168) +---- Thread: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS (/showthread.php?tid=141981) |
RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - pepeEL - 2014-01-15 But i want to install TVHeadend on Debian CHroot on DS713+. Not install as package SPK in DSM software... RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - pepeEL - 2014-01-15 (2013-12-23, 15:15)schumi2004 Wrote: @pepeEL I try this metod and i have a problem after delete line 268-269 i have an error: piotrek@piotrek-UL30JT:~/spksrc$ make ARCH=cedarview tvheadend cd spk/tvheadend/ && env make make[1]: Wejście do katalogu `/home/piotrek/spksrc/spk/tvheadend' ===> Processing dependencies of tvheadend make[2]: Wejście do katalogu `/home/piotrek/spksrc/cross/busybox' make[2]: Nie ma nic do zrobienia w `default'. make[2]: Opuszczenie katalogu `/home/piotrek/spksrc/cross/busybox' make[2]: Wejście do katalogu `/home/piotrek/spksrc/cross/tvheadend' ===> Compiling for tvheadend make[3]: Wejście do katalogu `/home/piotrek/spksrc/spk/tvheadend/work-cedarview/tvheadend-git9c1617df6b' CC src/input/mpegts/mpegts_mux.o src/input/mpegts/mpegts_mux.c: In function 'mpegts_mux_stop': src/input/mpegts/mpegts_mux.c:557: error: expected expression before 'else' src/input/mpegts/mpegts_mux.c: In function 'mpegts_mux_initial_scan_link': src/input/mpegts/mpegts_mux.c:611: error: expected expression before 'else' make[3]: *** [/home/piotrek/spksrc/spk/tvheadend/work-cedarview/tvheadend-git9c1617df6b/build.linux/src/input/mpegts/mpegts_mux.o] Błąd 1 make[3]: Opuszczenie katalogu `/home/piotrek/spksrc/spk/tvheadend/work-cedarview/tvheadend-git9c1617df6b' make[2]: *** [compile_target] Błąd 2 make[2]: Opuszczenie katalogu `/home/piotrek/spksrc/cross/tvheadend' make[1]: *** [depend_target] Błąd 2 make[1]: Opuszczenie katalogu `/home/piotrek/spksrc/spk/tvheadend' make: *** [tvheadend] Błąd 2 piotrek@piotrek-UL30JT:~/spksrc$ cd piotrek@piotrek-UL30JT:~$ sudo apt-get install mpegts Czytanie list pakietów... Gotowe Budowanie drzewa zależności Odczyt informacji o stanie... Gotowe E: Nie udało się odnaleźć pakietu mpegts piotrek@piotrek-UL30JT:~$ Can you help me please... Tell me how i can check git version which i write to make file ? Which numer is from web site...?? (2014-01-15, 00:45)aisman Wrote: i think not. Cause cedarview have glibc and gcc more oldest then arm. If you already have DC -- you can try to install testing gcc, and build tvh. When you will be success - I'll tel you about deb. But I don't think you need deb, you need only to build tvheadend, all other is simple. I try build file.deb on my DS213 with ARM... I do with this manual: https://tvheadend.org/projects/tvheadend/wiki/Building https://tvheadend.org/projects/tvheadend/wiki/Packaging and after Code: ./Autobuild.sh -t precise-i386 RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - aisman - 2014-01-15 1. Create user in DC 2. Build and install tvh as user ( you can see "hts" folder in /home/user) 3. Copy two files called "tvheadend" from your arm DC (1. from /etc/default 2. from /etc/init.d) and put its to the same places. 4. Change tvh-user in /etc/default/tvheadend to your user. You need have runapps.sh and S99deboan.sh. Or onstall tvh from repo. RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - pepeEL - 2014-01-15 (2014-01-15, 21:41)aisman Wrote: 1. Create user in DC 1. How create user ? Why i dont use user named root ? This user afetr go to Debian CHROOT from condole DSM. How i can create user name: hts ? 2. As is in this manual: Building¶ Prerequisites Before you can build Tvheadend you will need several packages installed on your development machine. The specific details will vary between distributions so we only cover the major ones here. Debian/Ubuntu $ sudo aptitude install build-essential git pkg-config libssl-dev bzip2 wget Optional: $ sudo aptitude install libavahi-client-dev zlib1g-dev libavcodec-dev libavutil-dev libavformat-dev libswscale-dev Get Source Next you must obtain the source code, this is hosted on github. To clone the repository simple run the command: $ git clone https://github.com/tvheadend/tvheadend.git Configuring TVHeadend comes with a configuration script that allows you to enable/disable optional components and set install paths, etc. Most people will be fine with the defaults and can run: $ ./configure However for more advanced options, please run the following: $ ./configure --help And then re-run configure with the required options, i.e.: $ ./configure --disable-dvbscan Compiling To compile Tvheadend run: $ make 4. You need have runapps.sh and S99deboan.sh. I can use from my ARM ? RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - aisman - 2014-01-15 Why you don't read what about I'm posting here? #126 RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - pepeEL - 2014-01-15 Im sorry I am beginner and learn it Tell me... I must add user with no password ? Next step from post #126 with shh and etc i cant do this ? Code: change port 22 in file /etc/ssh/sshd_config to 2222 (for example) How i must go directly to Debian by SSH ? RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - aisman - 2014-01-15 sudo apt-get install openssh-server Change port to 2222 in file /etc/ssh/sshd How are you going to sino via ssh? Its the same. Change port to 2222 in ssh-client. login: your-new-user. pass: pass-of- user. You must set password of your user when you adding user. Add to file runapps this line: (before sleep 40) /etc/init.d/ssh start reboot machine. RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - pepeEL - 2014-01-16 What is the reason to set ssh port in debian?? I can input to debian from console DSM... by Code: chroot /volume1/@appstore/debian-chroot/var/chroottarget /bin/bash On my DS213 with debian chroot and TVHeadend 3.9 i havent set ssh port for debian... Why ? Where i must type password from user i add to run TVHeadend as this user ? RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - aisman - 2014-01-16 On my DS213 with debian chroot and TVHeadend 3.9 i havent set ssh port for debian... Why ? because you installed it from deb Don't work as root if its not necessary. apt-get install sudo adduser pepeEL set password for pepeEL adduser pepeEL sudo RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - pepeEL - 2014-01-17 (2014-01-15, 21:36)pepeEL Wrote:(2013-12-23, 15:15)schumi2004 Wrote: @pepeEL @aisman can you help me with them...? RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - aisman - 2014-01-17 where exactly need my help? RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - pepeEL - 2014-01-17 when compiling .... because I can not compile on my laptop. I have done according to the description shumi2004 to compile the SynoCommunity and does not work. Up is my mistake ... RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - aisman - 2014-01-17 Ok, but I want you to understand what you're doing, rather than simply copy-paste commands, unfortunately, I do not have much time to teach people the basics of Linux and Shell, for it has Google. 1. Make shure your virtual machine is 32 bit, not 86-64! 2. Create on your NAS a folder with anonimous ftp access. 3. Go to VM. Code: git clone https://github.com/tvheadend/tvheadend Code: git clone https://github.com/SynoCommunity/spksrc.git if not previously done: Code: sudo apt-get install build-essential debootstrap python-pip automake libgmp3-dev libltdl-dev libunistring-dev libffi-dev ncurses-dev imagemagick libssl-dev pkg-config zlib1g-dev gettext git curl subversion check intltool gperf flex bison xmlto php5 expect libgc-dev mercurial cython lzip Code: sudo pip install -U pip rename tvheadend folder: Code: mv tvheadend tvheadend-master Code: cd tvheadend-master Code: nano support/configure.inc ctrl+O ; enter; ctrl+X go to parrent Code: cd ../ Code: tar -czvf tvheadend-master.tar.gz tvheadend-master go via samba to VM and copy tvheadend-master.tar.gz go via samba to your anonimous ftp-folder on NAS and put tvheadend-master.tar.gz in this place. go to spksrc/cross/tvheadend See my Makefile (note: curl) and do depending on your address on the NAS: Code: PKG_NAME = tvheadend delete digets-file go to spksrc/spk/tvheadend edit the Makefile. Yor file loocking as: (if you know the current version - place instead 3.9.368) Code: SPK_NAME = tvheadend If you set Polish on NAS, you may create file install_uifile_pl and put it to spksrc/spk/tvheadend/src/wizard : Code: [{ Code: cd Code: cd spksrc/spk/tvheadend Code: make -j8 arch-cedarview you will find spk in /spksrc/packages. Make shure tvheadend spk and tvheadend on DC will not work at the same time, port 9981 will be a busy one of them. RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - aisman - 2014-01-17 But you know, with the intel you have a much easier way. If you installed the DS, then there is no problem to put it from repository. In my experience, it works much better than spk. The fact, cedarview library is weaker than the arm. Therefore it is better to run tvheadend from DC. Take the time to install DC, to create a user there, and then: Code: sudo apt-get install curl Code: curl http://apt.tvheadend.org/repo.gpg.key | sudo apt-key add - Code: sudo nano /etc/apt/sources.list add this line in the end of file: Code: deb http://apt.tvheadend.org/unstable wheezy main Code: sudo apt-get update Code: sudo apt-get install tvheadend RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - pepeEL - 2014-01-18 After i done as you describe in post #178 at the end i have a bug and spk not create... Code: CC src/webui/webui_api.o You think that Synology with CPU ARM is better than Synology with CPU Intel Atom(cedarview) ? |