wiki:

How to quickly compile libx264


Version 2 (modified by burek, 10 months ago) (diff)

Changed the git URL

In order to quickly compile your  libx264, you can type the following commands in your shell:

# cd /my/path/where/i/keep/compiled/stuff
# git clone git://source.ffmpeg.org/ffmpeg.git
# cd x264
# ./configure --enable-static --enable-shared
# make
# make install
# ldconfig

P.S. If you are using Ubuntu, you'll most probably have to use sudo for the last 2 commands, like:

# sudo make install
# sudo ldconfig