Open fitsum opened 1 month ago
I had this issue earlier and was able to fix it by installing it using brew: brew install ffmpeg
Can you see libavcodec in the homebrew cellar if you run pkg-config --libs libavcodec
?
I had this issue earlier and was able to fix it by installing it using brew:
brew install ffmpeg
Can you see libavcodec in the homebrew cellar if you run
pkg-config --libs libavcodec
?
Thanks
I get Package libavcodec was not found in the pkg-config search path.
.
However I have ffmpeg 7.0.2 listed in my formulas so I did install it with homebrew.
After doing brew install ffmpeg
I still get the same error as above. My machine is a bit old but the OS is up to date so I'm curious what's clobbering what in my case.
Please trying deleting the build and rebuilding from scratch:
./Meta/ladybird.sh delete && ./Meta/ladybird.sh rebuild
(I think running ./Meta/ladybird.sh rebuild
on its own should work, but not 100% certain.)
At least that’s what worked for me in my macOS Sequoia 15.0 environment, with ffmpeg
installed from homebrew.
Without doing that delete-and-rebuild, the exact build failure message I had been getting was this:
ninja: error: '/opt/homebrew/Cellar/ffmpeg/7.0.2/lib/libavcodec.dylib', needed by 'lib/liblagom-media.0.0.0.dylib', missing and no known rule to make it
@fitsum Did you try what’s suggested in https://github.com/LadybirdBrowser/ladybird/issues/1329#issuecomment-2357928312?
@fitsum Did you try what’s suggested in #1329 (comment)?
thanks for your reply, I just attempted your suggestion a few times but the result is the same as the first error I got I first did the delete and rebuild, then just the rebuild, then the delete and rebuild once more to be sure
I saw the previous closed issue -- https://github.com/LadybirdBrowser/ladybird/issues/1254 -- however I've installed all required packages and attempted to build using all three recommended ways for MacOS: simple shell script invocation, using homebrew's clang, and using gdb. FFMPEG is installed already and used regularly on my machine. I've also followed brew's recommendation to install libav. I am still getting the following error