毕业论文开发语言企业开发JAVA技术.NET技术WEB开发Linux/Unix数据库技术Windows平台移动平台嵌入式论文范文英语论文
您现在的位置: 毕业论文 >> linux >> 正文

‘CODEC_TYPE_VIDEO’在此作用域中尚未声明

更新时间:2013-9-26:  来源:毕业论文

  在编译opencv时遇到下面问题,终端make的提示是:
/usr/local/OpenCV/OpenCV-2.0.0/src/highgui/cvcap_ffmpeg.cpp:467:13: 错误: ‘CODEC_TYPE_VIDEO’在此作用域中尚未声明
/usr/local/OpenCV/OpenCV-2.0.0/src/highgui/cvcap_ffmpeg.cpp:548:54: 错误: ‘avcodec_decode_video’在此作用域中尚未声明
真巧 我也今天装opencv2.1遇到同样的问题
这是由于ffmpeg版本太高,与opencv2.1不兼容
以前装过opencv2.3 没又出现这个问题
■attachment ffmpeg_build.patch  added
Patch for fixing compile errors resulting from latest FFMPEG


Changed 2 years ago by hatboyzero ¶
Patch added. Please review and verify changes.


Changed 2 years ago by hatboyzero ¶
Build is now failing with the following commit to FFMPEG repo at  git://git.videolan.-org/ffmpeg.git

 

Thu, 21 Apr 2011 09:24:34 +0000 (11:24 +0200)
committer Stefano Sabatini
Fri, 22 Apr 2011 08:21:21 +0000 (10:21 +0200)
commit 50f43fb0e26df6f090e88f4e09257ef5e10be0fb
tree ee224e71b23fcdb9689c58a74eb0f0115fad3cbc
parent 8772156be0725fd20d948a855616fe155fafdc09
Associated patch incoming momentarily.


Changed 2 years ago by hatboyzero
■attachment ffmpeg_build_2.patch  added
Additional patch for correct error reporting using AVERROR(EINVAL)


Changed 2 years ago by vp153 ¶
looks like the patch can potentially break builds with older versions of ffmpeg, thus it can not be applied in the current form.


ffmpeg is certainly a good library, but they break compatibility all the time. Let's wait for the next stable ffmpeg release.


Changed 2 years ago by vp153 ¶
■status changed from new to closed
■resolution set to fixed
Since OpenCV has been successfully built with quite recent ffmpeg 0.8.x, perhaps, now the problem is resolved.

设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©youerw.com 优尔论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。