ffmpeg qt 添加头文件错误

来源:互联网 发布:淘宝商城正品 编辑:程序博客网 时间:2024/06/05 02:36

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 静态库经过测试是可以编译并运行的

0 0
原创粉丝点击