joy4 icon indicating copy to clipboard operation
joy4 copied to clipboard

Cgo compile error

Open OceanW opened this issue 7 years ago • 2 comments

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!

OceanW avatar Aug 19 '17 09:08 OceanW

Seems like your local libav is not the right version. If you are on a mac, try re-installing ffmpeg with brew.

ericxtang avatar Feb 08 '18 17:02 ericxtang

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.

tehmaze avatar Nov 14 '18 23:11 tehmaze