Tvheadend Compile challenge

Hi,
I need to compile from source (not install from repo) Tvheadend
After installing some stuff I had noted from other distribution compil, I get error via .configure command. Details :

./configure --disable-dvbscan
Checking support/features
checking for cc execinfo.h … ok
checking for cc -mmmx … ok
checking for cc -msse2 … ok
checking for cc -Wunused-result … ok
checking for cc -fstack-protector … ok
checking for cc -fstack-protector-strong … ok
checking for cc -fstack-check … ok
checking for cc -fPIE … ok
checking for cc strlcat … ok
checking for cc strlcpy … ok
checking for cc fdatasync … ok
checking for cc getloadavg … ok
checking for cc atomic32 … ok
checking for cc atomic64 … ok
checking for cc atomic_time_t … ok
checking for cc atomic_ptr … ok
checking for cc bitops64 … ok
checking for cc lockowner … ok
checking for cc qsort_r … ok
checking for cc time_ld … ok
checking for cc time_lld … fail
^ using time_t format ‘ld’
checking for cc stime … fail
checking for cc gmtoff … ok
checking for cc recvmmsg … ok
checking for cc sendmmsg … ok
checking for cc gnu_libiconv … fail
checking for cc libiconv … fail
^ using build-in glibc iconv routines
checking for cc ifnames … ok
checking for cc cclang_threadsan … fail
WARN: no python binary found
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 3.1.4)
checking for cc linux/dvb/version.h … ok
checking for pkg zlib … ok (detected 1.3.1)
checking for pkg libpcre2-8 … fail (detected )
checking for pkg libpcre … fail (detected )
checking for pkg liburiparser … ok (detected 0.9.8)
checking for pkg avahi-client … ok (detected 0.8)
checking for cmake … ok
checking for cc -lstdc++ … fail

How to solve these errors ?

@Alberto1 is gcc-c++ installed?

You don’t need notes from another distribution, see how it’s built in openSUSE?
https://build.opensuse.org/projects/multimedia:apps/packages/tvheadend/files/tvheadend.spec?expand=1

You can also use the build service, with copypac, modify as required and build…

Hi malcolmlewis
Thanks for the link
I’ve installed gcc-c++ , it was missing.
But seems dvb-scan is missing too.
Did I compile it from source ?

./configure --disable-dvbscan --disable-hdhomerun_static --disable-ffmpeg_static
Checking support/features
checking for cc execinfo.h … ok
checking for cc -mmmx … ok
checking for cc -msse2 … ok
checking for cc -Wunused-result … ok
checking for cc -fstack-protector … ok
checking for cc -fstack-protector-strong … ok
checking for cc -fstack-check … ok
checking for cc -fPIE … ok
checking for cc strlcat … ok
checking for cc strlcpy … ok
checking for cc fdatasync … ok
checking for cc getloadavg … ok
checking for cc atomic32 … ok
checking for cc atomic64 … ok
checking for cc atomic_time_t … ok
checking for cc atomic_ptr … ok
checking for cc bitops64 … ok
checking for cc lockowner … ok
checking for cc qsort_r … ok
checking for cc time_ld … ok
checking for cc time_lld … fail
^ using time_t format ‘ld’
checking for cc stime … fail
checking for cc gmtoff … ok
checking for cc recvmmsg … ok
checking for cc sendmmsg … ok
checking for cc gnu_libiconv … fail
checking for cc libiconv … fail
^ using build-in glibc iconv routines
checking for cc ifnames … ok
checking for cc cclang_threadsan … fail
WARN: no python binary found
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 3.1.4)
checking for cc linux/dvb/version.h … ok
checking for pkg zlib … ok (detected 1.3.1)
checking for pkg libpcre2-8 … fail (detected )
checking for pkg libpcre … fail (detected )
checking for pkg liburiparser … ok (detected 0.9.8)
checking for pkg avahi-client … ok (detected 0.8)
checking for pkg libavfilter >=6.47.100 … fail (detected )
checking for pkg libswresample >=2.1.100 … fail (detected )
checking for pkg libswscale >=4.1.100 … fail (detected )
checking for pkg libavformat >=57.41.100 … fail (detected )
checking for pkg libavcodec >=57.48.101 … fail (detected )
checking for pkg libavutil >=55.28.100 … fail (detected )
WARNING: none or old ffmpeg libraries were detected
* use --disable-libav or --enable-ffmpeg_static
checking for cc sys/inotify.h … ok
checking for cc inotify_init1 … ok
checking for cc dvbcsa/dvbcsa.h … fail
ERROR: Failed to find dvbcsa library

LANG=C sudo zypper install libdvbcsa-devel
Loading repository data…
Reading installed packages…
‘libdvbcsa-devel’ not found in package names. Trying capabilities.
No provider of ‘libdvbcsa-devel’ found.
Resolving package dependencies…
Nothing to do.

this seems outdated : Building on openSuSE - Tvheadend.org

copypac I never use it …

@Alberto1 It’s dvbv5-scan so likely libdvbv5-devel is required… likewise either disable dvbsca or likely need to compile locally…

So what is the need to compile from source?

libdvbv5-devel is ok for install thanks.
i disable tvhcsa in conf file, then /.configure is OK.
But I need csa … and it was existing in 2022 looking tvheadend site

@Alberto1 then you would need to build https://www.videolan.org/developers/libdvbcsa.html

Ok. patch paquet was missing for make command, compiling ATM.

after 5 minutes compiling, an error : ERROR: opus not found using pkg-config
I retry without ffmpeg

@Alberto1 Is libopus-devel installed?

wasen’t , nor python. Restart

Without this option --disable-ffmpeg_static , it wont compile, even with libopus-devel installed
At end it diden’t find libopus.a …

final config :
./configure --disable-dvbscan --disable-ffmpeg_static
and with tvhcsa disabled in config file it compiles.
Next I will try FTA.
Edit
Works with Kodi

@Alberto1 disable static check .configure --help to see what the option is, eg --enable-static=off or similar

Only option is --disable-ffmpeg_static , was what i hat compiled. Hope transcoding is working …

For livdvbcsa, there is no configure nor makefile inside package …

@Alberto1 what package? did you download the tarball or git clone? If cloned, you need to bootstrap it, get the tarball instead.

Ah i did git clone. I will try tarball next

Compile with tarball is ok.
So now only ffmpeg doubt for transcoding, testing later.
Other problem: I had install pulseaudio instead pipewire, there is a bug somewhere on this machine, I had open an other ticket here in multimedia but no relevant response. I’m waiting a little for answer, if not I will post a bug report.
Thanks for all

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.