Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
slrem opened this issue Jun 28, 2022 · 2 comments
Open

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

slrem opened this issue Jun 28, 2022 · 2 comments

Comments

@slrem
Copy link

slrem commented Jun 28, 2022

github.com/nareix/joy4/cgo/ffmpeg

In file included from D:\gowork\pkg\mod\github.com\nareix\[email protected]\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
Copy link

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

@MoCuishle28
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants