Chinaunix首页 | 论坛 | 博客
  • 博客访问: 432580
  • 博文数量: 117
  • 博客积分: 3003
  • 博客等级: 中校
  • 技术积分: 1221
  • 用 户 组: 普通用户
  • 注册时间: 2010-08-16 14:11
文章分类

全部博文(117)

文章存档

2011年(7)

2010年(110)

我的朋友

分类: LINUX

2010-09-06 22:43:27

cvcap_ffmpeg.cpp:252: error: integer constant is too large for 'long' type
cvcap_ffmpeg.cpp:256: error: integer constant is too large for 'long' type
cvcap_ffmpeg.cpp:260: error: integer constant is too large for 'long' type
cvcap_ffmpeg.cpp:260: error: integer constant is too large for 'long' type

cvcap_ffmpeg.cpp:252: error: 'INT64_C' was not declared in this scope
cvcap_ffmpeg.cpp:256: error: 'INT64_C' was not declared in this scope
cvcap_ffmpeg.cpp:260: error: 'INT64_C' was not declared in this scope

此出错误,摆渡无数找到一个解决方法:
就是修改include/ffmpeg/avformat.h文件加入
#define INT64_C
#define __STDC_CONSTANT_MACROS
#include

反正可以解决问题。

cvcap_ffmpeg.cpp:390: error: 'EDOM' was not declared in this scope
cvcap_ffmpeg.cpp:392: error: 'EINVAL' was not declared in this scope
cvcap_ffmpeg.cpp:394: error: 'EILSEQ' was not declared in this scope
cvcap_ffmpeg.cpp:396: error: 'EIO' was not declared in this scope
cvcap_ffmpeg.cpp:398: error: 'ENOMEM' was not declared in this scope

此处错误原因我也不明,打开文件发现是一个错误处理函数,直接给注释掉。

> Try adding
>
> #define __STDC_CONSTANT_MACROS
>
> before first inclusion of or first inclusion of ffmpeg headers.
> This macro should be defined when using with C++ compiler

阅读(2102) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~