【ffmpeg + VS2010】编译包含libavutil\common.h后出现找不到inttypes.h的问题
来源:互联网 发布:中国最大的程序员社区 编辑:程序博客网 时间:2024/06/08 05:38
包含libavutil\common.h,由于里面#include <inttypes.h> ,会出现找不到inttypes.h的问题,
即使把inttypes.h的路径加上去之后,也无法编译通过,反而会出现一大堆问题。
解决办法如下:
删除#include <inttypes.h>这句,加上下面一大段
//Howard 2013-03-04 , 解决包含inttypes.h以后出现的Bug//#include <inttypes.h>
//Howard 2013-03-04 +++begin+++
#if defined(WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__)
#define CONFIG_WIN32
#endif
#if defined(WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__) && !defined(EMULATE_INTTYPES)
#define EMULATE_INTTYPES
#endif
#ifndef EMULATE_INTTYPES
#include <inttypes.h>
#else
typedef signed char int8_t;
typedef signed short int16_t;
typedef signed int int32_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
#ifdef CONFIG_WIN32
typedef signed __int64 int64_t;
typedef unsigned __int64 uint64_t;
#else /* other OS */
typedef signed long long int64_t;
typedef unsigned long long uint64_t;
#endif /* other OS */
#endif /* EMULATE_INTTYPES */
//解决UINT64_C没定义的问题
#ifndef INT64_C
#define INT64_C(c) (c##LL)
#define UINT64_C(c) (c##ULL)
#endif
//Howard 2013-03-04 +++end+++
0 0
- 【ffmpeg + VS2010】编译包含libavutil\common.h后出现找不到inttypes.h的问题
- 【ffmpeg + VS2010】编译包含libavutil\common.h后出现找不到inttypes.h的问题
- 【ffmpeg + VS2010】编译包含libavutil\common.h后出现找不到inttypes.h的问题
- ndk编译 ffmpeg 1.1.1 出现libavutil/time.h 和系统的time.h 冲突问题 ;
- vs2008 下编译ffmpeg,找不到inttypes.h和stdint.h,将这两个源码贴上
- 修改vs2010编译器不支持inttypes.h的问题
- vc编译ffmpeg遇到问题(inttypes.h和UINT64_C问题)
- 修改vc编译器不支持stdint.h、inttypes.h的问题
- VS2010编译Qt5.3项目,出现Moc'ing xxx.h,系统找不到指定路径问题
- 在vs2008下使用ffmpeg(1):inttypes.h的问题
- 在vs2008下使用ffmpeg(1):inttypes.h的问题
- ubuntu x64下编译出现找不到 cdefs.h / c++config.h 的问题
- inttypes.h
- inttypes.h
- use of UINT64_C in libavutil/common.h
- ffmpeg遇到inttypes.h和UINT64_C
- ffmpeg遇到inttypes.h和UINT64_C
- xcode ffmpeg common.h
- 第8周项目1-建立顺序串的算法库
- 前台 JS 获取后台C#值
- 多线程使用NSFileManager移动文件崩溃
- java基础学习笔记——String(1)
- 欢迎使用Markdown编辑器写博客
- 【ffmpeg + VS2010】编译包含libavutil\common.h后出现找不到inttypes.h的问题
- String类的用法
- Bootstrap插件scrollspy源码的学习
- 这几天的代码段
- 上下文切换
- 设计模式之-简单工厂模式
- java中extends和implements的区别
- 自定义隐式Intent弹出框,重写createChooser方法
- 初学ecshop遇到的问题