Tvheadend audio issue

Looks like you may need to install git.

sudo apt install git

thanks, but it’s already installed:

git is already the newest version (1:2.20.1-2+deb10u3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Wonder if this is relating to the ‘binary-only upload’ status I get when compiling on raspberry os, possibly due to GitHub not hosting a dedicated armhf package? Completely out of my depth here :wink:

It needs to be installed in the chroot.

You could add handle_dep “git” in the build script with the other handle deps.

Thanks. Following a little research, I tried to set up an alternative directory (sudo mkdir ~/new_root), add essential directories and copy binaries before trying to install git (which I’m assuming is what you advised Sam) but I think this is way over my head to be honest! Might just leave things here. :pray:

You could run:

sudo chroot /opt/osmc-tv/armv7-toolchain-osmc
apt-get -y install git
exit

and then build again, and it should succeed.
Or try my suggestion above.

Think I was going down the wrong path with chroot then. I tried your suggestion (add handle_dep “git” in the build script) and I think it’s getting closer…

Checking support/features
checking for cc execinfo.h … ok
checking for cc -mmmx … fail
checking for cc -msse2 … fail
checking for cc -Wunused-result … ok
checking for cc getloadavg … ok
checking for cc atomic64 … ok
checking for cc atomic_time_t … ok
checking for cc bitops64 … ok
checking for cc lockowner … ok
checking for cc qsort_r … ok
checking for cc stime … ok
checking for cc gmtoff … ok
checking for cc recvmmsg … ok
checking for cc sendmmsg … ok
checking for cc libiconv … fail
checking for cc libdvben50221 … fail
checking for cc ifnames … ok
checking for cc llabs … ok
checking for py module gzip … fail
checking for pkg-config … ok
checking for xgettext … ok
checking for msgmerge … ok
checking for gzip … ok
checking for bzip2 … ok
checking for pkg openssl … ok (detected 1.1.1d)
checking for cc linux/dvb/version.h … ok
checking for cc libhdhomerun/hdhomerun.h … ok
checking for pkg zlib … ok (detected 1.2.11)
checking for pkg liburiparser … ok (detected 0.9.1)
checking for pkg avahi-client … ok (detected 0.7)
checking for pkg libavfilter >=6.31.100 … fail (detected )
checking for pkg libswresample >=2.0.101 … fail (detected )
checking for pkg libavresample >=3.0.0 … fail (detected )
checking for pkg libswscale >=4.0.100 … fail (detected )
checking for pkg libavformat >=57.25.100 … fail (detected )
checking for pkg libavcodec >=57.24.102 … fail (detected )
checking for pkg libavutil >=55.17.103 … fail (detected )
WARNING: none or old ffmpeg libraries were detected
* use --disable-libav or --enable-ffmpeg_static
checking for cc dvbcsa/dvbcsa.h … ok
checking for cc -ldvbcsa … ok
fetching dvb-scan files … ok
checking for cc epoll_create1 … ok
checking for pkg dbus-1 … ok (detected 1.12.20)
checking for pkg libsystemd-daemon … fail (detected )
ERROR: libsystemd-daemon development support not found (use --disable-systemd_daemon)
Makefile:666: /support/.mk: No such file or directory
make: *** No rule to make target ‘/support/.mk’. Stop.
Makefile:666: /support/.mk: No such file or directory
make: *** No rule to make target ‘/support/.mk’. Stop.
Error occured during build
make: *** [Makefile:8: armv7] Error 1
make: Leaving directory ‘/mnt/package/tvheadend-app-osmc’
make: *** [Makefile:8: armv7] Error 2

Probably need to add libsystemd-daemon-dev to dependencies.

via sudo apt-get install libsystemd-daemon-dev ? The response is Unable to locate package libsystemd-daemon-dev.

Probably libsystemd-dev. You could add it via handle_dep again.

No joy unfortunately - I also noticed that handle_dep “libsystemd-dev” is already included in the list. I’m conscious this is now taking up your time, so could leave things here?

WARNING: none or old ffmpeg libraries were detected
* use --disable-libav or --enable-ffmpeg_static
checking for cc dvbcsa/dvbcsa.h … ok
checking for cc -ldvbcsa … ok
fetching dvb-scan files … ok
checking for cc epoll_create1 … ok
checking for pkg dbus-1 … ok (detected 1.12.20)
checking for pkg libsystemd-daemon … fail (detected )
ERROR: libsystemd-daemon development support not found (use --disable-systemd_daemon)
Makefile:666: /support/.mk: No such file or directory
make: *** No rule to make target ‘/support/.mk’. Stop.
Makefile:666: /support/.mk: No such file or directory
make: *** No rule to make target ‘/support/.mk’. Stop.
Error occured during build
make: *** [Makefile:8: armv7] Error 1
make: Leaving directory ‘/mnt/package/tvheadend-app-osmc’
make: *** [Makefile:8: armv7] Error 2

You could also pass this to the ./configure line.

sorry, no idea how I’d do that :roll_eyes:

On this line:

        PYTHON=python3 ./configure --prefix=/usr --enable-hdhomerun_client --disable-hdhomerun_static --disable-ffmpeg_static --disable-libx264 --disable_libx264_static --disable-libx265 --disable-libx265_static --disable-libvpx --disable-libvpx_static...

add that --disable option at the end.

Ah sorry, should’ve found that myself. Did as you said but no luck. Though I’d then leave –disable-systemd_daemon there and try –disable-libsystemd_daemon and it got much further into the build. After a minute or two I get the following:

find /mnt/package/tvheadend-app-osmc/files/usr/share/tvheadend -name .git -exec rm -rf {} ; &>/dev/null || /bin/true
Stripping binaries
find: ‘/mnt/package/tvheadend-app-osmc/files/usr/osmc/lib/’: No such file or directory
find: ‘/mnt/package/tvheadend-app-osmc/files/usr/osmc/lib/’: No such file or directory
/mnt/package/tvheadend-app-osmc
Publishing application for platform
dpkg-deb: building package ‘armv7-tvheadend-app-osmc’ in ‘armv7-tvheadend-app-osmc.deb’.
make: Leaving directory ‘/mnt/package/tvheadend-app-osmc’

I then tried unpacking as per your instructions:

osmc@osmc:~/osmc/package/tvheadend-app-osmc$ sudo dpkg -i armv7-tvheadend-app-osmc.deb
Selecting previously unselected package armv7-tvheadend-app-osmc.
(Reading database … 51690 files and directories currently installed.)
Preparing to unpack armv7-tvheadend-app-osmc.deb …
Unpacking armv7-tvheadend-app-osmc (4.2.8-5) …
dpkg: dependency problems prevent configuration of armv7-tvheadend-app-osmc:

…and got a message about a number of packages not installed or broken (seems it’s not even trying to install 4.3?). Instructions suggested I run apt-get -f install to fix this, which seemed to work, then tried to unpack again but can’t get any further. Think I’ll stop here Sam- my head is about to explode. :pray:

It is – you just didn’t change the version in files/DEBIAN/control, which doesn’t matter.

Some other dependency issue may be causing the problem here.