我正在处理涉及 FFmpeg 库的 Windows 上的 C++ 项目。
问题是我不能在我的项目中包含 ffmpeg 库。我什至无法运行任何 ffmpeg 教程或示例。我总是收到如下错误:
tutorial01.c:22:28: ffmpeg/avcodec.h: No such file or directory
tutorial01.c:23:29: ffmpeg/avformat.h: No such file or directory
tutorial01.c:33: error: `iFrame' undeclared (first use in this function)
//gcc -o tutorial01 tutorial01.c -lavformat -lavcodec -lz
//to build (assuming libavformat and libavcodec are correctly installed
//your system).
最佳答案
所以总结答案,你需要将ffmpeg的include和lib目录添加到gcc的目录路径中。
https://stackoverflow.com/questions/10026603/