[vdr] Help building xine-lib-1.2 --with-external-ffmpeg?

Niels Wagenaar n.wagenaar at xs4all.nl
Thu Oct 2 09:31:01 CEST 2008

-----Original message-----
From: Stefan Ellenberger <stefan_ell at hotmail.com>
Sent: Thu 02-10-2008 01:53
To: vdr at linuxtv.org; 
Subject: [vdr]   Help building xine-lib-1.2 --with-external-ffmpeg?

> Thanks Niels, indeed this helped me as well.

Your welcome!
> Now I'm getting a HUGE amount of "undefined reference to av_log"
> It starts browsing the ffmpeg source tree (where I built ffmpeg) for libav c 
> files
> here's the one that makes it quit:
> -- SNIP --
> You happen to know a way around this as well? Since you are using XUbuntu like 
> I do you might
> have experienced the same problem.

Nope. Besides that thing with the -ldts_pic and a additional patch, I didn't need to anything else.

> I don't hope it is getting any worse than that...

It shouldn't :)
> 1. how many fixes in the code have been necessary until you (Niels) could run a 
> save compile?

Only two in my case. But on those fixes is a patch so that xine-lib 1.2 SVN can build with the latest ffmpeg SVN releases.

> 2. Could anyone point out what kind of developer libraries you installed in 
> order to compile xine-lib savely?

This is what I use:


cd /usr/local/src
apt-get install build-essential
apt-get install mercurial cvs subversion libncurses-dev
apt-get install autoconf libtool automake pkg-config gettext
apt-get install liba52-0.7.4-dev liblame-dev libvorbis-dev zlib1g-dev libpng12-dev libx11-dev libxv-dev libasound2-dev
apt-get build-dep ffmpeg
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg/
./configure --prefix=/usr --enable-shared --enable-gpl --enable-postproc --enable-liba52 --enable-libmp3lame --enable-libvorbis --enable-pthreads --enable-swscale
make install
ldconfig –v

- Xine-lib 1.2 HG:

cd /usr/local/src
apt-get install libcdio-dev libvcdinfo-dev
hg clone http://hg.debian.org/hg/xine-lib/xine-lib-1.2
wget http://www8.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2
tar xivf essential-20071007.tar.bz2
mv essential-20071007 /usr/local/lib/win32
ln -s /usr/local/lib/win32 /usr/local/lib/codecs
wget http://shalafi.xs4all.nl/vdr/xine-lib-1_2-ffmpeg.patch
cd xine-lib-1.2
patch –p1 < ../xine-lib-1_2-ffmpeg.patch
./autogen.sh --prefix=/usr --with-external-ffmpeg --disable-dxr3 --enable-w32dll --with-w32-path=/usr/local/lib/win32
make install
ldconfig -v

- Xine-UI:

cd /usr/local/src
apt-get install libxt-dev
wget http://home.vrweb.de/~rnissl/xine-ui-cvs-20080310200000.tar.bz2
tar xivf xine-ui-cvs-20080310200000.tar.bz2
cd xine-ui
./autogen.sh --prefix=/usr --enable-vdr-keys
make install
I think that the above information should get you the stuff installed.


Niels Wagenaar

More information about the vdr mailing list