mplayer编译过程中出现ivtv错误
来源:互联网 发布:会员档案查询系统源码 编辑:程序博客网 时间:2024/05/20 05:07
mplayer编译过程中出现ivtv错误(摘自:http://blog.csdn.net/jixiuffff/archive/2009/06/21/4286856.aspx)
+-------------------------------------
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 .ly .ce
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 `/da
make: *** [libvo/libvo.a] Error 2
+-------------------------------------
解决方法,在 安装 MPlayer时: ./configure --disable-ivtv
随便找了找,用了configure 参数如下:
./configure --codecsdir=/usr/lib/codecs --enable-gui --enable-menu --prefix=/opt --mandir=/usr/share/man --win32codecsdir=/usr/lib/win32 --enable-largefiles --disable-tv --enable-freetype --disable-inet6 --enable-gl --enable-xv --enable-x11 --disable-ivtv
然后冒出一个错误,The GUI requires libavcodec with PNG support (needs zlib).
找了N久,网上都说需要“sudo apt-get install libavcodec-dev”就可以了,libavcodec-dev会将zlib装好的,我用了,不行。然后又去找zlib在ubuntu下到底是个什么名字,就是这个"zlib1g-dev",我已经装好的。libpng12-dev也装好了。
最好只好找configure.log,其实我都翻了几遍了,可是从文件最后根本看不出什么端倪,不过这次我搜索了configure.log中的 zlib,然后发现这么一句“/usr/bin/ld: cannot find -lXv”,然后真相大白,是libXv.so没有,于是“sudo apt-get install libxv-dev",configure通过。
1. The GUI requires libavcodec with PNG support (needs zlib).
solution:
sudo apt-get install zlib1g-dev
sudo apt-get install libxv-dev
2. 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)
solution:
because i don't want ivtv used on my pc, so i use --disable-ivtv to reconfigure it.
3. undefined reference to `video_out_ivtv'
collect2: ld returned 1 exit status
solution:
in file libvo/video_out.c, where
#ifdef HAVE_DXR2
extern vo_functions_t video_out_dxr2;
#endif
extern vo_functions_t video_out_dxr3; // ошибка сделана тут
#ifdef HAVE_IVTV
extern vo_functions_t video_out_ivtv;
#endif
edit it like this:
#ifdef HAVE_DXR2
extern vo_functions_t video_out_dxr2;
#endif
#ifdef HAVE_DXR3
extern vo_functions_t video_out_dxr3; / / Added patch HAVE_DXR3 because that is not compiling mplayer
#endif
#ifdef HAVE_IVTV
extern vo_functions_t video_out_ivtv;
#endif
- mplayer编译过程中出现ivtv错误
- mplayer编译过程中出现ivtv错误
- mplayer的编译过程
- mplayer编译过程
- mplayer编译过程
- [MPlayer]编译错误。
- linux内核编译过程中出现两个错误的解决方法~!
- android 4.0 编译过程中出现如下错误
- 在C++编译过程中出现c4996错误use _CRT_SECURE_NO_WARNINGS.
- 编译Android源码过程中出现的错误
- VS2013 中MFC程序编译过程出现 RC2108错误
- VS 2013 中MFC程序编译过程出现 RC2108错误
- sass编译过程中出现编码错误的问题
- [AOSP]编译Android6.0源码过程中出现AssertionError错误
- windows 中编译mplayer
- WINCE编译过程中的错误出现阶段
- WINCE编译过程中的错误出现阶段
- C++编译过程常出现的错误
- 在MyEclipse中更改项目名称要注意的问题
- Spring3与hibernate4整合,sessionFactory.getCurrentSession()方法获取不到Session对象异常解决办法
- 利用python做ui测试
- CVPR2014年录用论文
- VS2010断点调试技巧
- mplayer编译过程中出现ivtv错误
- java中如何跳出多层循环
- Box2d学习笔记二:第一个box2d程序
- 日本垃圾桶成神桶 淘宝热卖脱销竟无证书
- 消息处理机制:CCmdTarget 和 消息映射表
- 转一个不错的jQuery右键菜单
- Objective-C之启程Objective-C语言介绍
- ios应用程序多语言,根据系统语言
- iOS开发之获取手机通讯录联系人信息<一>