nareix / joy4

Golang audio/video library and streaming server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fatal error: libavformat/avformat.h: No such file or directory

slrem opened this issue · comments

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.

I also encountered this issue. Do you already have a solution?

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