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: 'libavutil/avutil.h' file not found #19

Open
floydback opened this issue Feb 20, 2023 · 9 comments
Open

fatal error: 'libavutil/avutil.h' file not found #19

floydback opened this issue Feb 20, 2023 · 9 comments

Comments

@floydback
Copy link

make
c++ keyfinder_cli.cpp -std=c++11 -Wall -lkeyfinder -lavcodec -lavformat -lavutil -lswresample -lfftw3 -o keyfinder-cli
keyfinder_cli.cpp:10:10: fatal error: 'libavutil/avutil.h' file not found

I have installed ffmpeg from homebrew. How can I force define ffmpeg include directory path? Because it can't find it

@evanpurkhiser
Copy link
Owner

you can try using my homebrew tap

brew tap evanpurkhiser/personal
brew install keyfinder-cli

@floydback
Copy link
Author

I'm not sure because at first I tried to install from source (maybe some package installed in the wrong place). But after I made brew uninstall fftw catch2 your homebrew tap worked. Without uninstalling it showed error with fftw and catch2 ...
Thank you.

@evanpurkhiser
Copy link
Owner

I suspect this has to do with how homebrew has put things into /opt/homebrew on apple silicone macs.

@nkleemann
Copy link

Just tried installing from your tap and got this error log:

==> Installing evanpurkhiser/personal/keyfinder-cli dependency: libkeyfinde
==> cmake -DCMAKE_INSTALL_PREFIX=/opt/homebrew/Cellar/libkeyfinder/v2.2.5 -S . -B build
==> cmake --build build --parallel 8
Last 15 lines from /Users/a/Library/Logs/Homebrew/libkeyfinder/02.cmake:
1 error generated.
make[2]: *** [tests/CMakeFiles/keyfinder-tests.dir/_testhelpers.cpp.o] Error 1
make[2]: *** [tests/CMakeFiles/keyfinder-tests.dir/chromagramtest.cpp.o] Error 1
1 error generated.
make[2]: *** [tests/CMakeFiles/keyfinder-tests.dir/chromatransformfactorytest.cpp.o] Error 1
1 error generated.
make[2]: *** [tests/CMakeFiles/keyfinder-tests.dir/chromatransformtest.cpp.o] Error 1
1 error generated.
1 error generated.
make[2]: *** [tests/CMakeFiles/keyfinder-tests.dir/binodetest.cpp.o] Error 1
make[2]: *** [tests/CMakeFiles/keyfinder-tests.dir/constantstest.cpp.o] Error 1
1 error generated.
make[2]: *** [tests/CMakeFiles/keyfinder-tests.dir/audiodatatest.cpp.o] Error 1
make[1]: *** [tests/CMakeFiles/keyfinder-tests.dir/all] Error 2
make: *** [all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/evanpurkhiser/homebrew-personal/issues

I'm on macOS 13.2.1, M1 Pro.

@evanpurkhiser
Copy link
Owner

Hmm yeah, I think I need to change something in the recipe to get it to search for the library files in the homebrew folder. I'm definitely doing something wrong.

@evanpurkhiser
Copy link
Owner

I had a few people test it out, wondering if newer brew may have fixed this?

Could any of you let me know if this is still happening?

@sleeplessKomodo
Copy link

experiencing this error on fedora, as ffmpeg-libs conflicts with libavutil-devel.

@arushijain
Copy link

I just tried it now, your tap worked for me @evanpurkhiser

@timosur
Copy link

timosur commented Dec 22, 2023

Solution from @floydback also worked for me.

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

6 participants