简体   繁体   English

ffmpeg 在 libavutil 中缺少 config.h(没有这样的文件或目录)代码块

[英]ffmpeg missing config.h in libavutil (No Such File or Directory) CodeBlocks

When I test the ffmepg encoding/decoding exapmle c program in CodeBlocks, it shows:当我在CodeBlocks 中测试ffmepg 编码/解码 exapmle c 程序时,它显示:

/ffmpeg_sources/ffmpeg/libavutil/internal.h    fatal error: config.h: No such file or directory

error happens in many other header file within ffmpeg_source/libavutil folder.错误发生在ffmpeg_source/libavutil文件夹中的许多其他头文件中。 I searched the folder but did not find config.h file.我搜索了文件夹,但没有找到 config.h 文件。 There are config.h in other folders but does not work for the header files within libavutil folder.其他文件夹中有 config.h 但不适用于 libavutil 文件夹中的头文件。

I tried download newest ffmepg zip file and also cannot find the config.h file in it.我尝试下载最新的 ffmepg zip 文件,但在其中也找不到 config.h 文件。

Where should I find the file?我应该在哪里找到文件?

config.h file is a platform specific configuration file for the source. config.h文件是源的特定于平台的配置文件。 It is generated by the configure script provided within the software package (usually in the root directory of the decompressed tarball or whatever archive the source comes from).它是由软件包中提供的configure脚本生成的(通常在解压后的 tarball 的根目录或任何来源的存档中)。 This script must be run before any build operation in order to have the source code configured to work within the target environment.此脚本必须在任何构建操作之前运行,以便将源代码配置为在目标环境中工作。

Additionally I have to mention that "public" headers of a lib never include config.h , so you should never include a header of a lib into your code if it includes config.h .另外,我不得不提到一个 lib 的“公共”头文件从不包含config.h ,所以如果它包含config.h ,你不应该在你的代码中包含一个 lib 的头config.h

在导入 ide 之前配置 ffmpeg 代码,然后你会在 root 上找到 config.h,它定义了平台特定的变量考虑你的平台

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM