您的位置:首页 > 编程语言 > Qt开发

ffmpeg qt 添加头文件错误

2015-08-06 18:25 549 查看
https://ffmpeg.zeranoe.com/forum/viewtopic.php?f=15&t=158

先贴上网址 转自这里

 -D__STDC_CONSTANT_MACROS /

 第一个问题

Error   4   error C3861: 'UINT64_C': identifier not found   .......\capture\codecvideo\libavutil\common.h 
 171

第二个问题

解决办法是在libavutl/common.h文件中添加

#ifdef __cplusplus
 #define __STDC_CONSTANT_MACROS
 #ifdef _STDINT_H
  #undef _STDINT_H
 #endif
 # include "stdint.h"
#endif

#ifndef INT64_C
#define INT64_C(c) (c ## LL)

#define UINT64_C(c) (c ## ULL)
#endif

不保证百分百管用 但是qt for android ffmpeg 静态库经过测试是可以编译并运行的
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: