/libavutil/timer.h:38:31: fatal error: linux/perf_event.h: No such file or directory
程序员文章站
2022-07-01 20:22:25
...
In file included from ./libavutil/internal.h:42:0,
from ./libavutil/common.h:467,
from ./libavutil/avutil.h:296,
from ./libavutil/avassert.h:31,
from libavfilter/aeval.c:26:
./libavutil/timer.h:38:31: fatal error: linux/perf_event.h: No such file or directory
# include <linux/perf_event.h>
这是我的安装目录路径
/ijkplayer-master/config/module-default.sh
看module-default.sh文件最后有没有这句话:
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-linux-perf" ,没有的话就加上
另外上面的添加,我并没有好,依然报错,,把以下命令依次再次执行。
cd config
rm module.sh
ln -s module-lite.sh module.sh
此时才成功
参考
https://github.com/Bilibili/ijkplayer
https://github.com/Bilibili/ijkplayer/issues/4049
http://www.ffmpeg-archive.org/ffmpeg-3-4-1-with-android-td4682624.html
下一篇: 邦马特CEO黄陽:无人零售需要变成新零售