Project

General

Profile

Debian Compiling Errors - Driving me nuts

Added by steve parry over 9 years ago

Hey all,

Not sure what I should ignore and what I shouldnt any more with the latest builds.

When I run ./configure I was getting the following errors

checking for cc libiconv ...                      fail
checking for pkg liburiparser  ...                fail
checking for ffmpeg libraries ...                 fail
checking for pkg libavcodec >=55.34.1 ...         fail (detected 53.35.0)

To fix the libiconv I used

wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
tar -xvzf libiconv-1.14.tar.gz
cd libiconv-1.14
./configure
make
make install

ffparser I used

apt-get install liburiparser-dev

I tried to fix ffmpeg but it still failed using this command

apt-get install ffmpeg

libavcodec I havent tried fixing

Question 1: Am I right in thinking I Can just skip ffmpeg and libavcodec by using the following command to build a internal set of tools?

AUTOBUILD_CONFIGURE_EXTRA=--enable-libffmpeg_static ./Autobuild.sh -t precise-amd64

Question 2:

When I call the above autobuild command I get this error.

        dpkg-shlibdeps -Tdebian/tvheadend.substvars debian/tvheadend/usr/bin/tvheadend
dpkg-shlibdeps: error: no dependency information found for /usr/local/lib/libiconv.so.2 (used by debian/tvheadend/usr/bin/tvheadend)
dh_shlibdeps: dpkg-shlibdeps -Tdebian/tvheadend.substvars debian/tvheadend/usr/bin/tvheadend returned exit code 2
make: *** [binary] Error 2
dpkg-buildpackage: error: debian/rules binary gave error exit status 2

What am I missing?


Replies (6)

RE: Debian Compiling Errors - Driving me nuts - Added by Trevor Tate over 9 years ago

I use old fashioned way
in tvheadend directory

./configure --enable-libffmpeg_static
make
sudo make install

first time run you need to run tvheadend --noacl (to set up log in access)
then quit tvheadned (killall -SIGHUP tvheadend) and restart tvheadend

RE: Debian Compiling Errors - Driving me nuts - Added by Prof Yaffle over 9 years ago

For your libiconv errors, see here: https://tvheadend.org/boards/5/topics/12300?r=12611. Looks like it's a platform compatibility issue.

For the build, I wouldn't recommend make install - stick to the debs using Autobuild, it's cleaner and easier to back out/upgrade. The AUTOBUILD... line you give will work fine, though I don't know if the -t parameter is unnecessary on a Debian system (but, equally, I don't think it makes any real difference anyway beyond specifying the 64-bit build). On completion, you'll get two debs to install through dpkg -i: one if the ordinary package, and the other is the debug symbols that are needed should you get a crash (they help translate from memory addresses back to line numnbers in the source code).

RE: Debian Compiling Errors - Driving me nuts - Added by steve parry over 9 years ago

Hey guys,

thanks for the advice

Trevor.
How do you start tvheadend on boot up as the upstart script seems to be missing. something i guess the debian package setup before?

Prof Yaffle: The autobuild throws the error (see question 2 in my first post)

The libiconv error happens in unbuntu 14.04 LTS and Debian Wheezy

RE: Debian Compiling Errors - Driving me nuts - Added by saen acro over 9 years ago

is there a solution with libiconv on Ubuntu 14.04

dpkg-shlibdeps /usr/lib/libiconv.so.2
dpkg-shlibdeps: warning: binaries to analyze should already be installed in their package's directory

RE: Debian Compiling Errors - Driving me nuts - Added by saen acro over 9 years ago

I cant understand how to fix that
I just read how in new versions this library is integrated in other one

Я приехал, как пользователь, и они меня хотят быть программистом ;)

    (1-6/6)