Error in precompiling FFMPEG and Cairo and CairoMakie

Hi All,
Using Mac Big Sur (11.7.7; Intel Mac), I failed to precompile FFMPEG, Cairo, and CairoMakie. Julia version 1.9.2

The error message returned

Failed to precompile FFMPEG [c87230d0-a227-11e9-1b43-d7ebe4e7570a] to “/Users/xxxx/.julia/compiled/v1.9/FFMPEG/jl_HQW5vg”.
ERROR: LoadError: InitError: could not load library “/Users/xxxx/.julia/artifacts/ff3aadfd4ca3ccb50156bf905841eb68157b2086/lib/libavdevice.58.13.100.dylib”
dlopen(/Users/xxxx/.julia/artifacts/ff3aadfd4ca3ccb50156bf905841eb68157b2086/lib/libavdevice.58.13.100.dylib, 1): Library not loaded: @rpath/libfreetype.6.dylib
Referenced from: /Users/xxxx/.julia/artifacts/ff3aadfd4ca3ccb50156bf905841eb68157b2086/lib/libavdevice.58.13.100.dylib
Reason: Incompatible library version: libavdevice.58.13.100.dylib requires version 27.0.0 or later, but libfreetype.6.dylib provides version 24.0.0

Would greatly appreciate if you can kindly provide some words to solve this issue.

Arindam Basu

This has to be fixed in the registry, but basically you have to update FreeType2_jll to v2.13.1. Alternatively, update macOS to version 12 which completely ignores compatibility numbers. This is related to the issue discussed in libGR issue preventing compilation · Issue #525 · jheinen/GR.jl · GitHub

Thanks a million for this solution, Mose @giordano ; Ultimately, I had to do a clean uninstall of my installation of Julia and start all over again. I installed FreeType2_jll@2.13.1, and then had to reinstall CairoMakie.

This should have been fixed for everybody by [FFMPEG] Build against older version of FreeType2 by giordano · Pull Request #7164 · JuliaPackaging/Yggdrasil · GitHub.