Skip to content

Commit

Permalink
document ways around needing xcb and fontconfig at build time
Browse files Browse the repository at this point in the history
  • Loading branch information
Be-ing committed Apr 6, 2022
1 parent 2d7648f commit 20142fb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ For Linux a few additional packages beyond the usual build essentials are needed
* xkbcommon (`libxkbcommon-dev` on debian based distributions)
* fontconfig library (`libfontconfig-dev` on debian based distributions)

`xcb` and `xcbcommon` are not needed if you are only using `backend-gl-wayland` without `backend-gl-x11`.

fontconfig can be `dlopen`ed at runtime instead of linking it at build time by setting the
environment variable `RUST_FONTCONFIG_DLOPEN=on`. This can be useful for [cross-compiling](#cross-compiling).

### macOS

* Make sure the "Xcode Command Line Tools" are installed: `xcode-select --install`
Expand Down Expand Up @@ -89,7 +94,7 @@ You can pass `-DCMAKE_INSTALL_PREFIX` in the first cmake command in order to cho
Slint can be cross-compiled to different target architectures and environments. For the Rust build we
have had a good experience using [`cross`](https://github.com/rust-embedded/cross). For convenience we're
including a `Cross.toml` configuration file for `cross` in the source tree along with Docker containers that
allow targeting a Debian ARMv7 and ARMv8 based Distribution with X11 or Wayland, out of the box.
allow targeting a Debian ARMv7 and ARMv8 based Distribution with X11 or Wayland, out of the box. If you want to use the default Cross containers or your own, make sure the [dependencies](#Prerequisites) are in the container.

This includes for example the Raspberry Pi OS. Using the following steps you can run the examples on a
pi:
Expand Down

0 comments on commit 20142fb

Please sign in to comment.