简体   繁体   中英

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:

/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. I searched the folder but did not find config.h file. There are config.h in other folders but does not work for the header files within libavutil folder.

I tried download newest ffmepg zip file and also cannot find the config.h file in it.

Where should I find the file?

config.h file is a platform specific configuration file for the source. 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). 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 .

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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