joy4
joy4 copied to clipboard
Cgo compile error
examples/audio_decode$ go build
github.com/nareix/joy4/cgo/ffmpeg
could not determine kind of name for C.AV_CODEC_FLAG_GLOBAL_HEADER could not determine kind of name for C.av_frame_alloc could not determine kind of name for C.av_packet_unref could not determine kind of name for C.avresample_get_out_samples
How to fix this? Help!
Seems like your local libav is not the right version. If you are on a mac, try re-installing ffmpeg with brew.
libavresample was initially merged into ffmpeg to be a drop-in replacement for libav, but was never maintained by ffmpeg itself in favor of their own libswresample. According to upstream, libswresample can do everything libavresample can do and more, plus libavresample has been entirely deprecated at the end of last year.