首页 > 学院 > 开发设计 > 正文

Mplayer源代码编译

2019-11-06 09:05:31
字体:
来源:转载
供稿:网友

平台:centos6.6-32位

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

tar -xvjf MPlayer-1.0rc2.tar.bz2cd MPlayer-1.0rc2./configuremake

报错: 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-ivtvmake

报错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;#endifmake make install

参考博客:

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


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表