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中的安裝方法詳解

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章