- 下载
# https://code.videolan.org/videolan/x264 # 建议下载稳定版 # https://code.videolan.org/videolan/x264/-/tree/stable # 其他版本 # https://ftp.videolan.org/pub/x264/snapshots/ git clone https://code.videolan.org/videolan/x264.git
- 解压
tar xf x264-master.tar.gz cd x264-master
- 编译
BUILD_LIBS=${HOME}/build_libs export PATH=${BUILD_LIBS}/bin:${PATH} # 运行之后无法编译 #./autogen.sh ./configure --prefix=${BUILD_LIBS} --enable-shared --enable-pic make make install