-
Notifications
You must be signed in to change notification settings - Fork 10
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
use dlib for easier cross compiling #11
Comments
Be-ing
changed the title
use dlopen for easier cross compiling
use dlib for easier cross compiling
Feb 14, 2022
Be-ing
added a commit
to Be-ing/fontconfig-rs
that referenced
this issue
Feb 14, 2022
Be-ing
added a commit
to Be-ing/fontconfig-rs
that referenced
this issue
Feb 14, 2022
Be-ing
added a commit
to Be-ing/fontconfig-rs
that referenced
this issue
Feb 14, 2022
Be-ing
added a commit
to Be-ing/fontconfig-rs
that referenced
this issue
Feb 15, 2022
Be-ing
added a commit
to Be-ing/fontconfig-rs
that referenced
this issue
Feb 15, 2022
Be-ing
added a commit
to Be-ing/fontconfig-rs
that referenced
this issue
Feb 15, 2022
Be-ing
added a commit
to Be-ing/fontconfig-rs
that referenced
this issue
Feb 15, 2022
Be-ing
added a commit
to Be-ing/fontconfig-rs
that referenced
this issue
Feb 15, 2022
Be-ing
added a commit
to Be-ing/fontconfig-rs
that referenced
this issue
Feb 15, 2022
Be-ing
added a commit
to Be-ing/fontconfig-rs
that referenced
this issue
Feb 16, 2022
Be-ing
added a commit
to Be-ing/fontconfig-rs
that referenced
this issue
Feb 17, 2022
Be-ing
added a commit
to Be-ing/fontconfig-rs
that referenced
this issue
Feb 17, 2022
Be-ing
added a commit
to Be-ing/fontconfig-rs
that referenced
this issue
Feb 17, 2022
wezm
pushed a commit
that referenced
this issue
Feb 21, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to cross compile my application from x86-64 Linux to aarch64-unknown-linux-gnu to build it for my Pinephone and I am stumbling over Slint's dependency on fontconfig. I tried using an ARM64 container to cross compile, but using emulation with QEMU requires 2 hours to build! Slint currently uses the unsafe servo-fontconfig crate, so I opened an issue for that, but I think it would be better to improve this crate and switch Slint to using this.
The servo-fontconfig crate falls back to statically linking a vendored copy of libfontconfig if pkgconfig does not find it. This is problematic for two reasons. Most importantly, using a different copy of fontconfig than the system doesn't work as desired. Also, fontconfig requires a lot of C dependencies that need to be linked, which makes it difficult to get the vendored copy to build:
A solution to this would be using the dlib to let the user of the library either directly link fontconfig at build time or use
dlopen
to load it at runtime and remove the build time dependency. I recently helped implement this for the Rust JACK bindings and it makes cross compiling really easy. The Rust Wayland bindings use dlib as well and the X11 bindings have a similar option to usedlopen
with the x11-dl crate.The text was updated successfully, but these errors were encountered: