Linux编译fseeki64报错,Windows系统下编译FFmpeg for Android(支持x264)-Go语言中文社区

本文介绍了如何解决在Linux环境下编译fseeki64时遇到的错误,并详细阐述了在Windows系统下编译FFmpeg for Android的过程,包括修改x264的configure文件、创建并执行build_android.sh脚本来配置和编译x264及FFmpeg,最终得到所需的头文件和库文件。
摘要由CSDN通过智能技术生成

一、编译x264

1、下载并解压x264

下载地址:

https://www.videolan.org/developers/x264.html

322aa585dd80961cce5bbead24e23432.png

下载最新版本,解压后得到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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值