fatal error: libavformat/avformat.h: No such file or directory
slrem opened this issue · 2 comments
slrem commented
github.com/nareix/joy4/cgo/ffmpeg
In file included from D:\gowork\pkg\mod\github.com\nareix\joy4@v0.0.0-20200507095837-05a4ffbb5369\cgo\ffmpeg\audio.go:4:
./ffmpeg.h:2:10: fatal error: libavformat/avformat.h: No such file or directory
#include <libavformat/avformat.h>
^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
MoCuishle28 commented
I also encountered this issue. Do you already have a solution?
MoCuishle28 commented
Maybe you can try apt-get install libavformat-dev
on Ubuntu.
After that, maybe you will also encounter missing libavresample
and libswscale
. Similarly, run apt-get install libavresample-dev
and apt-get install libswscale-dev