Display MoreHey everyone,
i think i have successful compile tvheadend with the instructions from =[M.I.T.M]=:Display MoreI'm currently struggling to make the patched TVH binary in the way that I can run it afterwards.
First,libdvbcsa was patched & installed before and old libdvbcsa-dev got purged, like this:
Codegit clone https://github.com/glenvt18/libdvbcsa cd libdvbcsa git config apply.whitespace nowarn git apply libdvbcsa.patch ./bootstrap ./configure make sudo apt-get purge libdvbcsa-dev make install
Next, TVH got patched and then make it (successfully)
Codecd tvheadend git config apply.whitespace nowarn git apply tvheadend43.patch make clean ./configure --disable-dvbcsa --disable-ffmpeg_static --disable-libfdkaac_static --disable-libtheora_static --disable-libopus_static --disable-libvorbis_static --disable-libvpx_static --disable-libx264_static --disable-libx265_static --disable-libfdkaac --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --disable-avahi --disable-dbus_1 --disable-bintray_cache --disable-execinfo --disable-hdhomerun_static --disable-hdhomerun_client --enable-libav --enable-pngquant --enable-trace --enable-vaapi --infodir=/usr/share/info --localstatedir=/var --mandir=/usr/share/man --prefix=/usr --python=python3 --sysconfdir=/config make
If I now want to run tvheadend binary, I get:
Coderoot@tvh-ubuntu-focal:~/tvheadend/build.linux# ./tvheadend ./tvheadend: symbol lookup error: ./tvheadend: undefined symbol: dvbcsa_bs_key_set_ecm
OS: Ubuntu 20.04.5
Any ideas where my mistake is?
Thanks!
EDIT:
ok, missed to purge also libdvbcsa1
Now I can run the binary. What's the default user and PWD for web ui access?
But, packaging it is still not possible with
It results in:
CodeDisplay Moreroot@tvh-ubuntu-focal:~/tvheadend# ./Autobuild.sh -t xenial-amd64 On branch master Your branch is up to date with 'origin/master'. Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: src/descrambler/descrambler.c modified: src/descrambler/descrambler.h modified: src/descrambler/tvhcsa.c modified: src/descrambler/tvhcsa.h no changes added to commit (use "git add" and/or "git commit -a") Using ccache cache directory /root/.ccache primary config /root/.ccache/ccache.conf secondary config (readonly) /etc/ccache.conf stats updated Mon Oct 10 18:16:49 2022 cache hit (direct) 511 cache hit (preprocessed) 1 cache miss 399 cache hit rate 56.20 % called for link 288 preprocessor error 3 cleanups performed 0 files in cache 1038 cache size 75.5 MB max cache size 5.0 GB dpkg-buildpackage: info: source package tvheadend dpkg-buildpackage: info: source version 4.3-2038~g5f9404117-dirty~xenial dpkg-buildpackage: info: source distribution xenial dpkg-buildpackage: info: source changed by Andreas Öman <andreas@tvheadend.org> dpkg-buildpackage: info: host architecture amd64 dpkg-source --before-build . dpkg-checkbuilddeps: error: Unmet build dependencies: libdvbcsa-dev dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting dpkg-buildpackage: warning: (Use -d flag to override.)
Now my problem is to login to the TVHeadend Setup via the GUI (even when i start it whit the argument -C)
and my second problem at the moment is, how to put at as autostart on the server? or what is the final "installation" command after compile tvheadend?
It would be amazing if some whit more Linux Skills, could provide a full guide for someone like me.
thx!
I use Ubuntu 20.04LTSR
I had problems with creating the package too, so I added a tvheadend.service manually:
1. copy your tvheadend folder to /usr/bin
2. sudo nano /etc/systemd/system/tvheadend.service and add this lines to the tvheadend.service file and save it:
#####
Description=tvheadend
[Service]
User=#yourusername
WorkingDirectory=/usr/bin/tvheadend/build.linux
ExecStart=/usr/bin/tvheadend/build.linux/tvheadend -C
Restart=always
[Install]
WantedBy=multi-user.target
######
3. sudo systemctl daemon-reload
4. sudo systemctl start tvheadend.service
5. sudo systemctl enable tvheadend.service