一、编译x264
1、下载并解压x264
下载地址:
https://www.videolan.org/developers/x264.html
下载最新版本,解压后得到x264-snapshot-20190111-2245文件夹。
2、修改configure文件
将configure文件中的
if cc_check "stdio.h" "" "fseeko(stdin,0,0);" ; then
define fseek fseeko
define ftell ftello
elif cc_check "stdio.h" "" "fseeko64(stdin,0,0);" ; then
define fseek fseeko64
define ftell ftello64
elif cc_check "stdio.h" "" "_fseeki64(stdin,0,0);" ; then
define fseek _fseeki64
define ftell _ftelli64
fi
修改为
if cc_check "stdio.h" "" "fseeko(stdin,0,0);" ; then
define fseek fseek
define ftell ftell
elif cc_check "stdio.h" "" "fseeko64(stdin,0,0);" ; then
define fseek fseek
define ftell ftell
elif cc_check "stdio.h" "" "_fseeki64(stdin,0,0);" ; then
define fseek _fseek
defin