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

../app/src/decoder.c:3:10: fatal error: 'libavformat/avformat.h' file not found #6

Closed
am5a03 opened this issue Mar 9, 2018 · 2 comments

Comments

@am5a03
Copy link

am5a03 commented Mar 9, 2018

I am using OSX and followed the guide to build the source code, but then when I get to the
ninja command, it's throwing build errors

[2/30] Compiling C object 'app/scrcpy@exe/src_decoder.c.o'.
FAILED: app/scrcpy@exe/src_decoder.c.o
cc  -Iapp/scrcpy@exe -Iapp -I../app -I/usr/local/include -I/usr/local/include/SDL2 -flto -Xclang -fcolor-diagnostics -pipe -Wall -Winvalid-pch -O3 -D_THREAD_SAFE -MD -MQ 'app/scrcpy@exe/src_decoder.c.o' -MF 'app/scrcpy@exe/src_decoder.c.o.d' -o 'app/scrcpy@exe/src_decoder.c.o' -c ../app/src/decoder.c
../app/src/decoder.c:3:10: fatal error: 'libavformat/avformat.h' file not found
#include <libavformat/avformat.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[7/30] Compiling C object 'app/scrcpy@exe/src_main.c.o'.
FAILED: app/scrcpy@exe/src_main.c.o
cc  -Iapp/scrcpy@exe -Iapp -I../app -I/usr/local/include -I/usr/local/include/SDL2 -flto -Xclang -fcolor-diagnostics -pipe -Wall -Winvalid-pch -O3 -D_THREAD_SAFE -MD -MQ 'app/scrcpy@exe/src_main.c.o' -MF 'app/scrcpy@exe/src_main.c.o.d' -o 'app/scrcpy@exe/src_main.c.o' -c ../app/src/main.c
../app/src/main.c:5:10: fatal error: 'libavformat/avformat.h' file not found
#include <libavformat/avformat.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
@rom1v
Copy link
Collaborator

rom1v commented Mar 9, 2018

Did you

brew install sdl2 ffmpeg

?

@am5a03
Copy link
Author

am5a03 commented Mar 9, 2018

Thanks :) ! Somehow ffmpeg was messed up and reinstalling from homebrew works. I'll close this one

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