Mplayer源代码编译

平台:centos6.6-32位

下载mplayer源代码mplayer源代码下载地址 我这里下载的是MPlayer-1.0rc2.tar.bz2

tar -xvjf MPlayer-1.0rc2.tar.bz2
cd MPlayer-1.0rc2
./configure
make 

报错:
vo_ivtv.c: In function ‘ivtv_reset’:
vo_ivtv.c:79: error: storage size of ‘sd’ isn’t known
vo_ivtv.c:80: error: storage size of ‘sd1’ isn’t known
vo_ivtv.c:84: error: ‘IVTV_STOP_FL_HIDE_FRAME’ undeclared (first use in this function)
vo_ivtv.c:84: error: (Each undeclared identifier is reported only once
vo_ivtv.c:84: error: for each function it appears in.)
vo_ivtv.c:87: error: ‘IVTV_IOC_STOP_DECODE’ undeclared (first use in this function)
vo_ivtv.c:97: error: ‘IVTV_IOC_START_DECODE’ undeclared (first use in this function)
vo_ivtv.c:80: warning: unused variable ‘sd1’
vo_ivtv.c:79: warning: unused variable ‘sd’
make1: * [vo_ivtv.o] Error 1
make1: Leaving directory `/home/wenyi/development/mplayer/MPlayer-1.0rc2/libvo’
make: * [libvo/libvo.a] Error 2
解决方法

./configure --disable-ivtv
make 

报错libvo/libvo.a(video_out.o):(.data+0x28): undefined reference to `video_out_ivtv’
解决方法:

  • 修改libvo/video_out.c的101行,
extern vo_functions_t video_out_dxr3;
修改为
#ifdef HAVE_DXR3 /*modified by wenyi 2017-2-28*/
extern vo_functions_t video_out_dxr3;
#endif
make 
make install

参考博客:

1-mplayer编译过程中出现ivtv错误
2-mplayer源代码包在fedora中的安装方法详解

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值