#!/bin/bash
# x264
git clone git://git.videolan.org/x264.git
cd x264
./configure --enable-shared
make -j3
make install
ldconfig
cd ..
# ffmpeg
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
cd ffmpeg
./configure --disable-debug --enable-shared --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-x11grab --enable-libx264 --enable-libvorbis --enable-libtheora --enable-libfaac --enable-libmp3lame
make -j3
make install
make install-libs
ldconfig
└─[17:14]-> make install
INSTALL libavdevice/libavdevice.a
INSTALL libavdevice/libavdevice.so
INSTALL libavfilter/libavfilter.a
STRIP install-libavdevice-shared
INSTALL libavformat/libavformat.a
INSTALL libavfilter/libavfilter.so
INSTALL libavformat/libavformat.so
STRIP install-libavfilter-shared
INSTALL libavcodec/libavcodec.a
STRIP install-libavformat-shared
INSTALL libavcodec/libavcodec.so
INSTALL libpostproc/libpostproc.a
STRIP install-libavcodec-shared
INSTALL libpostproc/libpostproc.so
INSTALL libswscale/libswscale.a
INSTALL libswscale/libswscale.so
STRIP install-libpostproc-shared
INSTALL libavcore/libavcore.a
INSTALL libavcore/libavcore.so
STRIP install-libswscale-shared
INSTALL libavutil/libavutil.a
INSTALL libavutil/libavutil.so
STRIP install-libavcore-shared
INSTALL libavdevice/avdevice.h
INSTALL libavdevice/libavdevice.pc
STRIP install-libavutil-shared
INSTALL libavfilter/avfilter.h
INSTALL libavfilter/libavfilter.pc
INSTALL libavformat/avformat.h
INSTALL libavformat/avio.h
INSTALL libavformat/libavformat.pc
INSTALL libavcodec/avcodec.h
INSTALL libavcodec/avfft.h
INSTALL libavcodec/dxva2.h
INSTALL libavcodec/opt.h
INSTALL libavcodec/vaapi.h
INSTALL libavcodec/vdpau.h
INSTALL libavcodec/xvmc.h
INSTALL libavcodec/libavcodec.pc
INSTALL libpostproc/postprocess.h
INSTALL libpostproc/libpostproc.pc
INSTALL libswscale/swscale.h
INSTALL libswscale/libswscale.pc
INSTALL libavcore/avcore.h
INSTALL libavcore/parseutils.h
INSTALL libavcore/libavcore.pc
INSTALL libavutil/adler32.h
INSTALL libavutil/attributes.h
INSTALL libavutil/avstring.h
INSTALL libavutil/avutil.h
INSTALL libavutil/base64.h
INSTALL libavutil/bswap.h
INSTALL libavutil/common.h
INSTALL libavutil/crc.h
INSTALL libavutil/error.h
INSTALL libavutil/eval.h
INSTALL libavutil/fifo.h
INSTALL libavutil/intfloat_readwrite.h
INSTALL libavutil/intreadwrite.h
INSTALL libavutil/lfg.h
INSTALL libavutil/log.h
INSTALL libavutil/lzo.h
INSTALL libavutil/mathematics.h
INSTALL libavutil/md5.h
INSTALL libavutil/mem.h
INSTALL libavutil/pixdesc.h
INSTALL libavutil/pixfmt.h
INSTALL libavutil/random_seed.h
INSTALL libavutil/rational.h
INSTALL libavutil/sha1.h
INSTALL libavutil/avconfig.h
INSTALL libavutil/libavutil.pc
LD ffmpeg_g
LD ffprobe_g
LD ffserver_g
/home/matt/src/ffmpeg/libavcodec/libavcodec.so: undefined reference to `x264_encoder_open_104'
collect2: ld returned 1 exit status
make: *** [ffmpeg_g] Error 1
make: *** Waiting for unfinished jobs....
/home/matt/src/ffmpeg/libavcodec/libavcodec.so: undefined reference to `x264_encoder_open_104'
collect2: ld returned 1 exit status
make: *** [ffprobe_g] Error 1
/home/matt/src/ffmpeg/libavcodec/libavcodec.so: undefined reference to `x264_encoder_open_104'
collect2: ld returned 1 exit status
make: *** [ffserver_g] Error 1