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

dyld: Library not loaded: /usr/local/opt/fontconfig/lib/libfontconfig.1.dylib #10

Closed
xcodebuild opened this issue May 20, 2020 · 3 comments

Comments

@xcodebuild
Copy link

Steps:

Got error:

dyld: Library not loaded: /usr/local/opt/fontconfig/lib/libfontconfig.1.dylib
  Referenced from: /Users/xcodebuild/Downloads/fontfor-macOS
  Reason: image not found
[1]    75413 abort 
@xcodebuild
Copy link
Author

brew install fontconfig

fix this for me

@7sDream
Copy link
Owner

7sDream commented May 20, 2020

Yes, on macOS you need to install fontconfig to run it.

it's because:

  1. servo/libfontconfig will dynamic link when decete fontconfig installed in system.
  2. And after check the makefile of that crate, I notice that on macOS, when fontconfig is not installed, which means it should build a static library by itself and static link to it, but actuly it doesn't compile anything.

So on macOS, we can only install fontconfig in compile docker and use dynamic link to do a successful build. I will open a issue to discuss this behavior.

@7sDream
Copy link
Owner

7sDream commented Nov 13, 2023

I think #58 makes this not a problem anymore.

Can be tested by download macOS binary from https://github.com/7sDream/fontfor/actions/runs/6852170331#artifacts and see if it runs/works without any dependencies installed.

@7sDream 7sDream closed this as completed Nov 13, 2023
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

2 participants