Project

General

Profile

Compilation issues

Added by Peter Christy over 7 years ago

I'm trying to build TVHeadend to work with my Kodi-17.3 installation, but the compilation keep failing. My system is Slackware64-current (pure 64 bit) and uses Gcc-7.1.0. It looks like ffmpeg is the problem, though why this should be is a mystery as I already have ffmpeg installed, with all the relevant libraries, for kdenlive, amongst other things.

The error is:

CC src/docs.o
CC tvheadend
/usr/lib64/gcc/x86_64-slackware-linux/7.1.0/../../../../x86_64-slackware-linux/bin/ld: /tmp/SBo/tvheadend-git20170805/build.linux/ffmpeg/build/ffmpeg/lib/libx265.a(encoder.cpp.o): undefined reference to symbol '_ZdaPv@@GLIBCXX_3.4'
/usr/lib64/libstdc++.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make1: * [Makefile:636: /tmp/SBo/tvheadend-git20170805/build.linux/tvheadend] Error 1
make1: Leaving directory '/tmp/SBo/tvheadend-git20170805'
make: *
[Makefile:99: ffmpeg_all] Error 2

I've tried tvheadend-4.2.1, 4.3 and a git pull from the 5th of August. All display similar problems.

I note that the makefile pulls in its own ffmpeg. Since I already have a working ffmpeg and relevant libraries installed, is there anyway to persuade it build to use the existing ffmpeg? Or to otherwise fix the problem?

Cheers,

--
Pete


Replies (3)

RE: Compilation issues - Added by Robert Cameron over 7 years ago

It sure does. The configure option you want is --disable-ffmpeg_static. Also, seeing as how it is dying on the libx265 compilation, you may also want --disable-libx265_static --enable-libx265.

For reference, here's my configure:

./configure --prefix=/usr --mandir=/usr/share/man/man1 --release \
  --python=python3 \
  --disable-ffmpeg_static --enable-libav \
  --disable-libx264_static --enable-libx264 \
  --disable-libx265_static --enable-libx265 \
  --disable-libvpx_static \
  --disable-libtheora_static \
  --disable-libvorbis_static \
  --disable-libfdkaac_static \
  --disable-libmfx_static --disable-qsv \
  --disable-nvenc \                            
  --disable-hdhomerun_static --enable-hdhomerun_client

RE: Compilation issues - Added by Peter Christy over 7 years ago

YES! That worked! Its taken me a while to figure out all the configuration options, but all now seems to be running well!

Its very strange, because I've just updated my own x264, x265 and ffmpeg without any issues, so why it fails to compile internally to tvheadend is a mystery - to me, anyway!

Thanks very much for your help!

--
Pete

RE: Compilation issues - Added by Robert Cameron over 7 years ago

The standard ./configure --help will work with most any program that uses autotools and ./configure && make && make install as their build/install process.

    (1-3/3)