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

Fontconfig-sys fails to build on Ubuntu #206

Closed
foxjazz opened this issue Aug 10, 2019 · 6 comments
Closed

Fontconfig-sys fails to build on Ubuntu #206

foxjazz opened this issue Aug 10, 2019 · 6 comments
Labels
bug Something isn't working platform:linux Issue appears on Linux

Comments

@foxjazz
Copy link

foxjazz commented Aug 10, 2019

Windows or ubuntu subsystem
Build fails (cargo build) on project

Compiling gl_generator v0.11.0
error: failed to run custom build command for servo-fontconfig-sys v4.0.7 (https://github.com/maps4print/azul-dependencies?rev=bf2933b9aac43a7003278862772250398e4fa457#bf2933b9)
process didn't exit successfully: /mnt/g/rust/azul/target/debug/build/servo-fontconfig-sys-a68a4acab3010bbd/build-script-build (exit code: 101)
--- stderr
thread 'main' panicked at 'called Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:997:5
note: Run with RUST_BACKTRACE=1 environment variable to display a backtrace.

warning: build failed, waiting for other jobs to finish...
error: build failed

@foxjazz foxjazz added the bug Something isn't working label Aug 10, 2019
@fschutt fschutt changed the title build fails Fontconfig-sys fails to build on Ubuntu Aug 10, 2019
@fschutt fschutt added the platform:linux Issue appears on Linux label Aug 10, 2019
@adrianromero
Copy link

I have the same problem in Debian 9. Here the full ouput of building a simple application if it helps.

azulbuilderror.log

@fschutt
Copy link
Owner

fschutt commented Aug 25, 2019

Yeah well, it's more of a problem that should be reported to servo-fontconfig-sys, shouldn't it - I can't do much about the bugs of a dependency.

@adrianromero
Copy link

Oh!, Thanks for the clarification. I will review Fontconfig-sys tracker.

@lbordowitz
Copy link

For what it's worth, I was able to install it with the following packages. Not sure which are actually necessary, though.

sudo apt install libfontconfig1-dev fontconfig-config fontconfig vflib3-dev
sudo snap install cmake --classic

@andrewzah
Copy link

andrewzah commented Dec 24, 2019

This is because the master branch has an old dependency to servo-fontconfig-sys.

Checkout the unvendor_dependencies branch and build from that, it's more up to date. That let me compile everything on debian.

@fschutt
Copy link
Owner

fschutt commented Mar 26, 2021

I have replaced fontconfig-sys with rust-fontconfig, which is a pure-Rust rewrite of the relevant fontconfig functions that azul uses (selecting and querying fonts). Since fontconfig-sys is not needed anymore for building azul, I am closing this issue. The master branch has been updated.

@fschutt fschutt closed this as completed Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform:linux Issue appears on Linux
Projects
None yet
Development

No branches or pull requests

5 participants