转自: http://www.blogs.soctel.in/cross-compiling-libx264-for-arm/
Download the x264 snapshot from ftp://ftp.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
This will buiild both the library (libx264.a) and the executable (x264)
$ ./configure –host=arm-none-linux-gnueabi –cross-prefix=/opt/toolschain/4.4.3/bin/arm-none-linux-gnueabi- –enable-shared –enable-static –disable-asm –prefix=/home/soctel/Desktop/armlibs/install_all/
$ make
$ make install