ffmpeg_log.c:2:26: fatal error: libavutil/log.h: No such file or directory
来源:5-2 FFmpeg开发入门Log系统

封屿
2019-01-13
include<libavutil/log.h> 编译的时候报错:ffmpeg_log.c:2:26: fatal error: libavutil/log.h: No such file or directory
在 /usr/local/ffmpeg/include 下是有这些文件的,不知道是不是环境变量设置的不对。ubuntu系统
写回答
2回答
-
你没有设置环境变量引起的,设置一下 PKG_CONFIG_PATH 这个环境变量就好了。你可以看一下我写的常见问题解答,地址:https://www.imooc.com/article/253497
022020-05-08 -
封屿
提问者
2019-01-13
gcc -g -o ffmpeg_log ffmpeg_log.c -i /usr/local/ffmpeg/include -L /usr/local/ffmpeg/lib -lavutil
这样倒是好像可以,就是有点太长的,没有老师的简单
00
相似问题