http://blog.csdn.net/u012917616/article/details/40921833
不废话,直接上.sh脚本:
export NDK=/home/xxx/my_software/android-ndk-r10
export PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/
export PLATFORM=$NDK/platforms/android-14/arch-arm
export PREFIX=/home/xxx/x264
#export CC=$PREBUILT/linux-x86/bin/arm-linux-androideabi-gcc
./configure --prefix=$PREFIX
--enable-static
--enable-shared
--enable-pic
--disable-asm
--disable-cli
--enable-strip
--host=arm-linux
--cross-prefix=$PREBUILT/linux-x86/bin/arm-linux-androideabi-
--sysroot=$PLATFORM
make clean
make
make install