在Slackware下编译安装Mplayer时出现了如下错误:

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' make[1]: *** [vo_ivtv.o] Error 1 make[1]: Leaving directory `/home/kder/MPlayer-1.0rc2/libvo' make: *** [libvo/libvo.a] 错误 2

解决方案:在./configure 时后面加上 --disable-ivtv 即可,下面是我的配置:

./configure --enable-gui --codecsdir=/usr/lib/codecs --win32codecsdir=/usr/lib/codecs --realcodecsdir=/usr/lib/codecs --xanimcodecsdir=/usr/lib/codecs --language=zh_CN --disable-ivtv

转载请注明 作者 Kder 出处 http://www.kder.info/mplayer-ivtv-error.html

 

您也许想再看看这些: