I have ffmpeg installed.
I want to test the code in joy4/examples/audio_decode/main.go when the program reported the following error:
# github.com/nareix/joy4/cgo/ffmpeg
In file included from /root/go/pkg/mod/github.com/nareix/joy4@v0.0.0-20200507095837-05a4ffbb5369/cgo/ffmpeg/audio.go:4:0:
./ffmpeg.h:5:10: fatal error: libavresample/avresample.h: No such file or directory
#include <libavresample/avresample.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
when I execute go get github.com/nareix/joy4/cgo/ffmpeg ,the error appears again.
From ffmpeg 5.x, avresample is no longer available, you might need to downgrade. We are working on modifying it to work with later ffmpeg versions. https://github.com/kerberos-io/joy4
I have
ffmpeg
installed. I want to test the code injoy4/examples/audio_decode/main.go
when the program reported the following error:when I execute
go get github.com/nareix/joy4/cgo/ffmpeg
,the error appears again.Then execute the following commands.
But the program still reports errors, so what can I do?