zoukankan      html  css  js  c++  java
  • VC下ffmpeg例程调试报错处理

    tools/options/directories/include files  添加ffmpeg头文件所在路径

    tools/options/directories/library files  添加ffmpeg库路径

    project/settings/link/object/library modules 添加所用的ffmpeg库

    二二

    二、

    、、

    、报错解决

    报错解决报错解决

    报错解决

    1、解决:Cannot open include file: 'inttypes.h'

    更新ffmpeg之后,有时编译应用ffmpeg库的工程会发现提示: Cannot open

    include file: 'inttypes.h': No such file or directory 的出错信息,可通过如下方法解

    决:

        (1) 找到include目录中的ffmpegcommon.h

        (2)在“#define COMMON_H”之后加入如下代码,同时删除“#include

    <inttypes.h>” 然后保存:

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

    保存后再编译

    2、解决error C2054: expected '(' to follow 'inline' 

    不用改代码,直接改project->[setting]->[c/c++]->Preprocessor definitions:编辑框里输入

    inline=__inline即可 

    3、解决error C2010: '.' : unexpected in macro formal parameter list

    直接注释掉相应行 ,换版本

    4

    、解决

    VC

    不包含

    stdint.h

    头文件问题

         stdint.h是C99的标准,主要用于统一跨平台数据定义。MSVC中不带有这个头文件,

    直到VS2010。在之前的版本里面,我们可以:

        (1)下载这个头文件

    download a MS version of this header from:

        http://msinttypes.googlecode.com/svn/trunk/stdint.h

    A portable one can be found here:

        http://www.azillionmonkeys.com/qed/pstdint.h

        (2)将头文件放到(以VS2008为例):

    C:Program FilesMicrosoft Visual Studio 9.0VCinclude

  • 相关阅读:
    误删除pycharm项目中的文件,如何恢复?
    Python/PHP 远程文件/图片 下载
    Python 字节与字符串的转换
    Python中的Json模块dumps、loads、dump、load函数介绍
    Python 连接数据库失败
    Python 模块搜索路径
    Python 操作 PostgreSQL 数据库
    从shell(终端)中退出python
    URL 传参中需要处理的特殊字符
    PHP 命名空间和自动加载
  • 原文地址:https://www.cnblogs.com/bbsno1/p/3278465.html
Copyright © 2011-2022 走看看