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

[Build error] error: failed to run custom build command for yeslogic-fontconfig-sys v5.0.0 #362

Open
hsyodyssey opened this issue Sep 2, 2024 · 3 comments

Comments

@hsyodyssey
Copy link
Contributor

Issue

  • build failed in WSL Ubuntu 22.04

Error Log

error: failed to run custom build command for `yeslogic-fontconfig-sys v5.0.0`
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_DEV_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.

How to fix it
Refer to this: Font Kit on crates.io
Run the following command to install the necessary dependencies:

sudo apt install pkg-config libfreetype6-dev libfontconfig1-dev

Why
plotters depends on font-kit.
font-kit requires the following libraries to be installed on Ubuntu:

sudo apt install pkg-config libfreetype6-dev libfontconfig1-dev

@ncitron
Copy link
Collaborator

ncitron commented Sep 3, 2024

Ah interesting. I think we only use plotters for some of the benchmarking which we might just want to turn off by default.

This only effects building helios on WSL not running a pre-built binary correct?

@hsyodyssey
Copy link
Contributor Author

correct

Yes, I don't have this problem on my M2 Mac.

@movapages
Copy link

Thank you!
Had similar problem on Debian 12 with Rust's plotters...
This - sudo apt install pkg-config libfreetype6-dev libfontconfig1-dev - helped.

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

3 participants