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 Sep 30, 2022
1 parent a2fcc0f commit 8a824d5
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
- fontconfig library (`libfontconfig-dev` on debian based distributions)
- (optional) Qt will be used when `qmake` is found in `PATH`

`xcb` and `xcbcommon` are not needed if you are only using `backend-winit-wayland` without `backend-winit-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 @@ -125,7 +130,7 @@ in the dependencies section of your `package.json`:
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 8a824d5

Please sign in to comment.