Skip to content
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

Issue compiling Nannou (Ubuntu) #790

Open
dfamonteiro opened this issue Sep 2, 2021 · 2 comments
Open

Issue compiling Nannou (Ubuntu) #790

dfamonteiro opened this issue Sep 2, 2021 · 2 comments

Comments

@dfamonteiro
Copy link

  • OS: Ubuntu 20.04.3 LTS
  • Nannou version: 0.17

I was following the Nannou Guide, more specifically the create a project page. Unfortunately, when I was running cargo run --release, I was presented with this compiling error:

(base) daniel@danielLaptop:~/Desktop/scratchpad/my-project$ cargo run --release
   Compiling my-project v0.1.0 (/home/daniel/Desktop/scratchpad/my-project)
error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-m64" <wall of text>
<wall of text>
<wall of text>
<wall of text>
<wall of text>
  = note: /usr/bin/ld: cannot find -lxcb-render
          /usr/bin/ld: cannot find -lxcb-shape
          /usr/bin/ld: cannot find -lxcb-xfixes
          collect2: error: ld returned 1 exit status
          

error: aborting due to previous error

error: could not compile `my-project`

To learn more, run the command again with --verbose.

Luckily I managed to find this issue, installed the required packages, and it compiled with no problem whatsoever.

sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev

Perhaps the guide needs to include these packages as well?

@protodrew
Copy link

seconding, took me a bit to figure out.

@akhildevelops
Copy link

Yaa I was also facing the same issue. Installing them solved it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants