在VS2013编译FFmpeg遇到的问题

1.inttype.h问题

之前看说需要使用inttype.h,然后就从minGW的include文件夹中将其拷贝出来,放到自己的include下,但是运行报很多错误,后来网上看了下说需要将inttype.h的内容改下,如下:

#pragma once

#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 */

编译通过

通过后自己想深究下inttypes.h是干嘛的,查下官方说明:

http://www.qnx.com/developers/docs/6.5.0/index.jsp?topic=%2Fcom.qnx.doc.dinkum_en_c99%2Finttypes.html

添加于C99标准,

Include the standard header <inttypes.h> to define a type, several functions, and numerous macros for fine control over the conversion of integers. Note that the definitions shown for the macros are merely representative -- they can vary among implementations.

包含一个type ,一些函数,和大量的宏定义,目的就是更好的控制不同整数集的转换。不同的实现可以不同,所以这个文件不同系统上有不用版本呀,这样理解不知道可否。

而VS2013已经支持部分C99标准,其中就包括了inttypes.h,所以如果用VS2013编译的话,是没有inttypes.h这个问题的!我又多此一举了(哭


-------------------------------------------------------------------------------------------

缺少pthreadGC-3.dll动态库

这个可以在minWG/bin下找到,将其放到自己的dll目录下即可





  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值