gpt4 book ai didi

c++ - fatal error : libavfilter/avfiltergraph. h:没有这样的文件或目录

转载 作者:行者123 更新时间:2023-12-04 23:11:01 25 4
gpt4 key购买 nike

我正在尝试构建这个项目:
https://github.com/abdullahfarwees/screen-recorder-ffmpeg-cpp .
我安装了 ffmpeg(按照 repo README 中的说明进行操作)。之后,我尝试使用正确的路径进行编译(使用 compile.sh 文件中的命令)。
我收到以下错误:

In file included from src/main.cpp:2:
src/../include/ScreenRecorder.h:23:10: fatal error: libavfilter/avfiltergraph.h: No such file or directory
23 | #include "libavfilter/avfiltergraph.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from src/ScreenRecorder.cpp:1:
src/../include/ScreenRecorder.h:23:10: fatal error: libavfilter/avfiltergraph.h: No such file or directory
23 | #include "libavfilter/avfiltergraph.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
我安装了 libavfilter 库。
有谁知道如何解决这一问题?谢谢您的帮助

最佳答案

avfiltergraph.h 被合并到 this commit 中的 avfilter.h
您应该使用之前的版本,或者创建一个包含以下内容的虚拟 libavfilter/avfiltergraph.h:

#include "libavfilter/avfilter.h"
我还建议您将此问题报告给您正在尝试编译的项目,最好是通过拉取请求:)

关于c++ - fatal error : libavfilter/avfiltergraph. h:没有这样的文件或目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68710070/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com