下载地址:https://github.com/corecodec/x264
git clone https://github.com/corecodec/x264.git
export CC=aarch64-linux-gnu-gcc
./configure --host=arm-linux-gnu --disable-asm --prefix=/opt/arm-libs/arm64 --enable-shared
编译:
make clean;make -j4
安装:
➜ x264-master sudo make install
install -d /opt/arm-libs/arm64/bin
install x264 /opt/arm-libs/arm64/bin
install -d /opt/arm-libs/arm64/include /opt/arm-libs/arm64/lib/pkgconfig
install -m 644 ./x264.h x264_config.h /opt/arm-libs/arm64/include
install -m 644 x264.pc /opt/arm-libs/arm64/lib/pkgconfig
install -d /opt/arm-libs/arm64/lib
ln -f -s libx264.so.157 /opt/arm-libs/arm64/lib/libx264.so
install -m 755 libx264.so.157 /opt/arm-libs/arm64/lib