Comment 11 for bug 225060

Revision history for this message
ababichev (ababichev) wrote :

The problem with ffmpeg: it's an instantly 'moving' target that has no stable releases, only SVN tree and nightly snapshots :-( For maintainers it's a real pain to provide stable packages like deb, rpm and so on for such kind of projects (no wonder that still no answer from Medibuntu developers).

I've got the same errors when trying compile 'ffmpeg-export-06-16' snapshot, but previous one from '2006-06-03' is fine.
Somewhere between these dates ffmpeg team starts using latest libx264 headers and library incompatible with Ubuntu's libx264-dev library.

The simplest solution here to use snapshot compatible with libx264-dev package (2006-06-03 works for me)

Yet another solution is to rebuild libx264 from sources, if you want use latest ffmpeg snapshot:
Grab daily x264 snapshot from here: ftp://ftp.videolan.org/pub/videolan/x264/snapshots/ (take latest build!)
Unpack and build it by executing the following commands:

bunzip2 < x264-snapshot-2008xxxx-xxxx.tar.bz2 | tar -xf -
cd x264-snapshot-2008xxxx-xxxx
./configure --enable-shared
make
sudo make install

Now you have in /usr/local/include and /usr/local/lib all staff required for ffmpeg compilation, only don't forget to add
--extra-cflags=-I/usr/local/include and --extra-ldflags=-L/usr/local/lib flags:

./configure --enable-liba52 --enable-liba52bin --enable-libamr_nb --enable-libamr_wb \
 --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libdc1394 \
 --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libxvid --enable-libx264 \
 --enable-gpl --enable-postproc --enable-shared --enable-pthreads --enable-static \
 --disable-vhook --disable-debug --enable-nonfree --cpu=i686 \
 --prefix=/usr/local
--extra-cflags=-I/usr/local/include --extra-cflags=-I/usr/include \
--extra-ldflags=-L/usr/local/lib --extra-ldflags=-L/usr/lib

After it's done, you can compile ffmpeg smoothly.