• 1
  • 18
  • 19
  • 20(current)
  • 21
  • 22
  • 35
HOW-TO Compile Tvheadend & HDHomerun on Synology NAS
Hello
I do this step by step and i have a problem with make install

Code:
hts@Synology_DS713:~/tvheadend$ make
CC              src/version.o
CC              src/main.o
CC              src/tvhlog.o
CC              src/idnode.o
CC              src/prop.o
CC              src/utils.o
CC              src/wrappers.o
CC              src/access.o
CC              src/dtable.o
CC              src/tcp.o
CC              src/url.o
CC              src/http.o
CC              src/notify.o
CC              src/file.o
CC              src/epg.o
CC              src/epgdb.o
CC              src/epggrab.o
CC              src/spawn.o
CC              src/packet.o
CC              src/streaming.o
CC              src/channels.o
CC              src/subscriptions.o
CC              src/service.o
CC              src/htsp_server.o
CC              src/htsmsg.o
CC              src/htsmsg_binary.o
CC              src/htsmsg_json.o
CC              src/htsmsg_xml.o
CC              src/misc/dbl.o
CC              src/misc/json.o
CC              src/settings.o
CC              src/htsbuf.o
CC              src/trap.o
CC              src/avg.o
CC              src/htsstr.o
CC              src/tvhpoll.o
CC              src/huffman.o
CC              src/filebundle.o
CC              src/config2.o
CC              src/lang_codes.o
CC              src/lang_str.o
CC              src/imagecache.o
CC              src/tvhtime.o
CC              src/descrambler/descrambler.o
CC              src/service_mapper.o
CC              src/input.o
CC              src/http/http_client.o
CC              src/fsmonitor.o
CC              src/api.o
CC              src/api/api_status.o
CC              src/api/api_idnode.o
CC              src/api/api_input.o
CC              src/api/api_channel.o
CC              src/api/api_service.o
CC              src/api/api_mpegts.o
CC              src/api/api_epg.o
CC              src/api/api_epggrab.o
CC              src/api/api_imagecache.o
CC              src/parsers/parsers.o
CC              src/parsers/bitstream.o
CC              src/parsers/parser_h264.o
CC              src/parsers/parser_latm.o
CC              src/parsers/parser_avc.o
CC              src/parsers/parser_teletext.o
CC              src/epggrab/module.o
CC              src/epggrab/channel.o
CC              src/epggrab/module/pyepg.o
CC              src/epggrab/module/xmltv.o
CC              src/plumbing/tsfix.o
CC              src/plumbing/globalheaders.o
CC              src/dvr/dvr_db.o
CC              src/dvr/dvr_rec.o
CC              src/dvr/dvr_autorec.o
CC              src/webui/webui.o
CC              src/webui/comet.o
CC              src/webui/extjs.o
CC              src/webui/simpleui.o
CC              src/webui/statedump.o
CC              src/webui/html.o
CC              src/webui/webui_api.o
CC              src/muxer.o
CC              src/muxer/muxer_pass.o
CC              src/muxer/muxer_tvh.o
CC              src/muxer/tvh/ebml.o
CC              src/muxer/tvh/mkmux.o
CC              src/input/mpegts/mpegts_input.o
CC              src/input/mpegts/mpegts_network.o
CC              src/input/mpegts/mpegts_mux.o
CC              src/input/mpegts/mpegts_service.o
CC              src/input/mpegts/mpegts_table.o
CC              src/input/mpegts/dvb_support.o
CC              src/input/mpegts/dvb_charset.o
CC              src/input/mpegts/dvb_psi.o
CC              src/input/mpegts/tsdemux.o
CC              src/epggrab/otamux.o
CC              src/epggrab/module/eit.o
CC              src/epggrab/support/freesat_huffman.o
CC              src/epggrab/module/opentv.o
CC              src/input/mpegts/linuxdvb/linuxdvb.o
CC              src/input/mpegts/linuxdvb/linuxdvb_adapter.o
CC              src/input/mpegts/linuxdvb/linuxdvb_frontend.o
CC              src/input/mpegts/linuxdvb/linuxdvb_network.o
CC              src/input/mpegts/linuxdvb/linuxdvb_mux.o
CC              src/input/mpegts/linuxdvb/linuxdvb_service.o
CC              src/input/mpegts/linuxdvb/linuxdvb_satconf.o
CC              src/input/mpegts/linuxdvb/linuxdvb_lnb.o
CC              src/input/mpegts/linuxdvb/linuxdvb_switch.o
CC              src/input/mpegts/linuxdvb/linuxdvb_rotor.o
CC              src/input/mpegts/linuxdvb/linuxdvb_en50494.o
CC              src/input/mpegts/linuxdvb/scanfile.o
CC              src/input/mpegts/iptv/iptv.o
CC              src/input/mpegts/iptv/iptv_mux.o
CC              src/input/mpegts/iptv/iptv_service.o
CC              src/input/mpegts/iptv/iptv_http.o
CC              src/input/mpegts/iptv/iptv_udp.o
CC              src/input/mpegts/tsfile/tsfile.o
CC              src/input/mpegts/tsfile/tsfile_input.o
CC              src/input/mpegts/tsfile/tsfile_mux.o
CC              src/timeshift.o
CC              src/timeshift/timeshift_filemgr.o
CC              src/timeshift/timeshift_writer.o
CC              src/timeshift/timeshift_reader.o
CC              src/dvr/dvr_inotify.o
CC              src/libav.o
CC              src/muxer/muxer_libav.o
CC              src/plumbing/transcoding.o
CC              src/descrambler/tvhcsa.o
CC              src/descrambler/cwc.o
CC              src/descrambler/capmt.o
CC              src/descrambler/ffdecsa/ffdecsa_interface.o
CC              src/descrambler/ffdecsa/ffdecsa_int.o
CC              src/descrambler/ffdecsa/ffdecsa_mmx.o
CC              src/descrambler/ffdecsa/ffdecsa_sse2.o
MKBUNDLE        bundle.c
CC              bundle.o
CC              tvheadend
hts@Synology_DS713:~/tvheadend$ make install
CC              tvheadend
install -d /usr/bin
install /home/hts/tvheadend/build.linux/tvheadend /usr/bin/tvheadend
install: nie można utworzyć zwykłego pliku `/usr/bin/tvheadend': Brak dostępu
make: *** [install] Błąd 1
hts@Synology_DS713:~/tvheadend$

I add user hts to sudo in point number 7 your manual.
Reply
Ok i do sudo make install and done.
But in /home/hts/ i have not directory .hts as you write in:

13. Chmod 777-R /home/pepeEL/.hts

i add user name hts not pepeEL

Code:
hts@Synology_DS713:~/tvheadend$ sudo make install

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for hts:
CC              tvheadend
install -d /usr/bin
install /home/hts/tvheadend/build.linux/tvheadend /usr/bin/tvheadend
install -d /usr/share/man/man1
install /home/hts/tvheadend/man/tvheadend.1 /usr/share/man/man1/tvheadend.1
for bundle in docs/html docs/docresources src/webui/static data/conf data/dvb-scan; do \
                mkdir -p /usr/share/tvheadend/$bundle ;\
                cp -Lr /home/hts/tvheadend/$bundle/*  /usr/share/tvheadend/$bundle ;\
        done
find /usr/share/tvheadend -name .git -exec rm -rf {} \; &>/dev/null || /bin/true
hts@Synology_DS713:~/tvheadend$ cd ..
hts@Synology_DS713:~$ pwd
/home/hts
hts@Synology_DS713:~$ ls
tvheadend
hts@Synology_DS713:~$
Reply
Ok after reboot synology i have directory .hts
I want to change permission
hts@Synology_DS713:~$ Chmod 777-R /home/hts/.hts
-bash: Chmod: nie znaleziono polecenia

I change this permission by WinSCP. After i go to WebGUI tvheadend i have a window login: user and password.
What is the user and password ? I nothing set user and password to tvheadend.

In .hts i only have directory input and nothing else.
Reply
sudo chmod 777 -R
Reply
OKi


hts@Synology_DS713:~$ sudo Chmod 777 -R /home/hts/.hts
[sudo] password for hts:
sudo: Chmod: nie znaleziono polecenia
hts@Synology_DS713:~$


How i can login to WEB GUI ? What user and password ?


And when i login on hts user to debian by console i can stop TVHeadend but i can not start tvheadend. I have info that i no permision. On root user i can start and stop tvheadend...
Reply
chmod, not Chmod

tvheadend -C
then set users and permissions in GUI
Reply
(2014-01-28, 12:34)pepeEL Wrote: How i can login to WEB GUI ? What user and password ?


And when i login on hts user to debian by console i can stop TVHeadend but i can not start tvheadend. I have info that i no permision. On root user i can start and stop tvheadend...

TVHeadend has a nice FAQ page: https://tvheadend.org/projects/tvheadend/wiki/Faq
Reply
And when i login on hts user to debian by console i can stop TVHeadend but i can not start tvheadend. I have info that i no permision. On root user i can start and stop tvheadend...

hts@Synology_DS713:~$ /etc/init.d/tvheadend restart
[....] Restarting Tvheadend: tvheadendrm: nie można usunąć `/var/run/tvheadend.pid': Brak dostępu
watching '/run/udev' failed
2014-01-28 11:42:18.224 [ ALERT] START: setgid() failed, do you have permission?
failed!
hts@Synology_DS713:~$
Reply
@Smiggel, thank you :-)

@pepeEL, do you know what is sudo? This is root permissions Smile
Reply
(2014-01-28, 12:43)aisman Wrote: @Smiggel, thank you :-)

Wink
Reply
OKi Smile Works great Smile

Aisman thak you Smile for help Smile All works perfect Smile
Reply
@aisman
Did you tested latest master recently? It seems EDL support (comskip) is added (also need a modified TVH addon).
Going to give it a try to compile it for my DS211 tonight and see how it works.
Reply
So instead of cross compiling your now all using tvheadend within a debian chroot within DSM? Does it perform well? Can't believe…
Reply
@Cassiel
more than well Smile I have DS with intel, and can t0 install tvh from repo, or build install master with gcc 4.8.2 Smile I can't say exactly, but intel-machines have very weak glibc (even more weak then it on armv5, sic) and gcc, because this developer of tvh has to make changes to the code to compile although somehow. I recently compared the work spk package and work of Debian on DS411j - I can definitely say, in Debian all is easier and less CPU usage. On the intel I did not even try to build spk - don't see any sense in it, when there is Debian Smile I use Debian on two DS - intel and armadaxp, although armhf spk compiles fine, I didn't do this and just using debian for tvh, and other programs.

@schumi2004, thank you for info, I'll try it soon. Maybe I again need your lessons Smile
Reply
@aisman
Thanks for clarification… My setup (DS213j, Armada cpu with hard float + TVHeadend 3.4.27) is very stable at the moment and I don't want to risk making my system unstable… Wink
Reply
  • 1
  • 18
  • 19
  • 20(current)
  • 21
  • 22
  • 35

Logout Mark Read Team Forum Stats Members Help
HOW-TO Compile Tvheadend & HDHomerun on Synology NAS1