Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,34 @@ RHEL/Fedora:
sudo dnf install openssl-devel gtk3-devel cairo-devel alsa-lib-devel
```

##### BSD (WIP)

**Note:** BSD isn't fully supported yet, and you may encounter issues.

Similar to Linux, Druid defaults to GTK while providing an X11 backend as well.
Furthermore, bindgen must be able to find LLVM through the expected environment variable.
Only OpenBSD/amd64 has been tested so far.

OpenBSD:
```shell
doas pkg_add gtk+3 cairo llvm
export LIBCLANG_PATH=/usr/local/lib
```

In case rustc(1) fails building bigger crates
```shell
memory allocation of 2880 bytes failed
error: could not compile `gtk`

Caused by:
process didn't exit successfully: `rustc --crate-name gtk [...]` (signal: 6, SIGABRT: process abort signal)
warning: build failed, waiting for other jobs to finish...
```
try increasing your user's maximum heap size:
```shell
ulimit -d $(( 2 * `ulimit -d` ))
```

##### Building

On all platforms, the **latest Rust stable** (at least 1.54.0) is needed.
Expand Down