【问题标题】:ffmpeg include error - github projectffmpeg 包含错误 - github 项目
【发布时间】:2015-01-25 00:19:32
【问题描述】:

我正在尝试编译 (IDE:VS2008) 以下项目: https://github.com/arpu/adscanner

由于项目需要 ffmpeg 库,我从这里下载了 DEV 版本:http://ffmpeg.zeranoe.com/builds/

我已链接库方向并将标头添加到包含路径。

虽然我收到错误消息:““ffmpeg/avcodec.h”:没有这样的文件或目录”

提前谢谢你

PS:我试过 64 位和 32 位库,都没有。但是我怎样才能弄清楚 github 项目使用的是 32 位还是 64 位 ffmpeg 版本呢?

【问题讨论】:

    标签: ffmpeg


    【解决方案1】:

    在 ffmpeg_movie.h 中更改它

    extern "C" { 
    #include <ffmpeg/avcodec.h>
    #include <ffmpeg/avformat.h>
    #include <ffmpeg/swscale.h>
    }
    

    到这里

    extern "C"{
        #include <libavcodec/avcodec.h>
        #include <libavformat/avformat.h>
        #include <libswscale/swscale.h>
    }
    

    当我上次使用 ffmpeg 时,我不得不添加这个

    extern "C"{
    #ifdef __cplusplus
     #define __STDC_CONSTANT_MACROS
     #ifdef _STDINT_H
      #undef _STDINT_H
     #endif
     # include <stdint.h>
    #endif
    }
    # include <stdio.h>
    #ifndef INT64_C
    #define INT64_C(c) (c ## LL)
    #define UINT64_C(c) (c ## ULL)
    #endif
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-07-04
      • 1970-01-01
      • 2013-06-27
      • 1970-01-01
      • 2016-11-30
      • 2022-08-16
      • 2018-12-10
      • 2016-02-02
      相关资源
      最近更新 更多