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

CairoMakie fails to precompile on macOS #3790

Closed
mxhbl opened this issue Apr 17, 2024 · 3 comments
Closed

CairoMakie fails to precompile on macOS #3790

mxhbl opened this issue Apr 17, 2024 · 3 comments
Labels

Comments

@mxhbl
Copy link

mxhbl commented Apr 17, 2024

I cannot get CairoMakie to precompile on macOS. The problem is that Cairo.jl cannot compile due to JuliaGraphics/Cairo.jl#362. Since Cairo.jl seems to be not-so-actively maintained, I thought I'd open an issue here to see if there is a way to fix it.

To reproduce the error on macOS 11.7, Julia 1.10.2, run

pkg> activate --temp
pkg> add CairoMakie

which will result in

PkgPrecompileError: The following 1 direct dependency failed to precompile:

CairoMakie [13f3f980-e62b-5c42-98c6-ff1f3baf88f0]

Failed to precompile CairoMakie [13f3f980-e62b-5c42-98c6-ff1f3baf88f0] to "/Users/user/.julia/compiled/v1.10/CairoMakie/jl_iR81Xh".
ERROR: LoadError: InitError: could not load library "/Users/user/.julia/artifacts/80b8948d1fa864a4974c0d4e71ddce9586311598/lib/libpangocairo-1.0.0.dylib"
dlopen(/Users/user/.julia/artifacts/80b8948d1fa864a4974c0d4e71ddce9586311598/lib/libpangocairo-1.0.0.dylib, 1): Library not loaded: @rpath/libcairo.2.dylib
  Referenced from: /Users/user/.julia/artifacts/80b8948d1fa864a4974c0d4e71ddce9586311598/lib/libpangocairo-1.0.0.dylib
  Reason: Incompatible library version: libpangocairo-1.0.0.dylib requires version 11603.0.0 or later, but libcairo.2.dylib provides version 2.0.0

@mxhbl mxhbl added the bug label Apr 17, 2024
@jkrumbiegel
Copy link
Member

jkrumbiegel commented Apr 17, 2024

Hm as you're already linking the right issue in Cairo.jl this does not seem like something that is actionable for us in this repo (we have too many dependencies to collect their issues here I would argue). I'm going to close this issue but to get assistance you might try to get some of the binarybuilder people on Slack to look into this. They are the best at solving these kinds of issues.

@mxhbl
Copy link
Author

mxhbl commented Apr 17, 2024

Alright, thanks for the pointer!

@giordano
Copy link

Fixed with JuliaPackaging/Yggdrasil#8497.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants