Stream: beginners

Topic: cargo bill


view this post on Zulip Dull Bananas (Sep 12 2021 at 02:29):

how do i fix "cannod find -lxkbcommon" error? it shows when running "cargo build" or "cargo run repl"

view this post on Zulip Richard Feldman (Sep 12 2021 at 02:52):

haven't seen that one before! can you post the full console output?

view this post on Zulip Dull Bananas (Sep 12 2021 at 03:57):

full output

view this post on Zulip Richard Feldman (Sep 12 2021 at 03:58):

hmm, what OS are you running?

view this post on Zulip Richard Feldman (Sep 12 2021 at 03:59):

I guess macOS based on the mentions of homebrew in the trace

view this post on Zulip Dull Bananas (Sep 12 2021 at 04:00):

ubuntu 20.04.2 lts

view this post on Zulip Richard Feldman (Sep 12 2021 at 04:01):

interesting! ok try apt-get install libxkbcommon-dev and see if that fixes it?

view this post on Zulip Richard Feldman (Sep 12 2021 at 04:01):

ha, I just noticed we have that in our Earthfile but not in BUILDING_FROM_SOURCE.md :sweat_smile:

view this post on Zulip Dull Bananas (Sep 12 2021 at 04:15):

it now works :poop:

view this post on Zulip Richard Feldman (Sep 12 2021 at 04:22):

great! made a PR to add it to the instructions: https://github.com/rtfeldman/roc/pull/1691

view this post on Zulip Folkert de Vries (Sep 12 2021 at 09:01):

ah yes, this is now needed. I don't entirely know why though? The lib seems to do keyboard event handling. @Anton is this for the editor? I first had to install it while working on the wasm stuff but that should not do anything with the keyboard

view this post on Zulip Anton (Sep 12 2021 at 09:35):

I'm not sure which library requires it, I've been adding changes to the editor-let-value branch and not to trunk for a long time so I would guess it's not because of the editor. But I often specify only major and minor version number of editor dependencies so it could be that there was an unnoticed update with a patch version that required the library for a fix.

view this post on Zulip Brendan Hansknecht (Sep 12 2021 at 15:55):

It's needed by the copy paste library of the editor

view this post on Zulip Brendan Hansknecht (Sep 12 2021 at 15:56):

xcb v0.9.0
└── x11-clipboard v0.5.2
    └── copypasta v0.7.1
        └── roc_editor v0.1.0 (/home/brendan/Projects/roc-misc/roc/editor)

Last updated: Jul 06 2025 at 12:14 UTC