# Error in precompiling FFMPEG and Cairo and CairoMakie

**URL:** https://discourse.julialang.org/t/error-in-precompiling-ffmpeg-and-cairo-and-cairomakie/102461
**Category:** General Usage
**Tags:** question
**Created:** [August 3, 2023, 7:49pm UTC](https://discourse.julialang.org/t/error-in-precompiling-ffmpeg-and-cairo-and-cairomakie/102461 "2023-08-03T19:49:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![arinbasu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/arinbasu/32/581_2.png) [@arinbasu](https://discourse.julialang.org/u/arinbasu)
#### Post date: [August 3, 2023, 7:49pm UTC](https://discourse.julialang.org/t/error-in-precompiling-ffmpeg-and-cairo-and-cairomakie/102461/1 "2023-08-03T19:49:15Z")

</div>

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.

Best,  
Arindam Basu

---

<div class="post-metadata">

### Author: ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)
#### Post date: [August 3, 2023, 8:44pm UTC](https://discourse.julialang.org/t/error-in-precompiling-ffmpeg-and-cairo-and-cairomakie/102461/2 "2023-08-03T20:44:28Z")

</div>

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](https://github.com/giordano/macos-compatibility-version). This is related to the issue discussed in [libGR issue preventing compilation · Issue #525 · jheinen/GR.jl · GitHub](https://github.com/jheinen/GR.jl/issues/525)

---

<div class="post-metadata">

### Author: ![arinbasu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/arinbasu/32/581_2.png) [@arinbasu](https://discourse.julialang.org/u/arinbasu)
#### Post date: [August 4, 2023, 2:34am UTC](https://discourse.julialang.org/t/error-in-precompiling-ffmpeg-and-cairo-and-cairomakie/102461/3 "2023-08-04T02:34:13Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)
#### Post date: [August 4, 2023, 2:10pm UTC](https://discourse.julialang.org/t/error-in-precompiling-ffmpeg-and-cairo-and-cairomakie/102461/4 "2023-08-04T14:10:49Z")

</div>

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