jakobhellermann / bevy-inspector-egui

Inspector plugin for the bevy game engine
Apache License 2.0
1.19k stars 173 forks source link

Linking Error #33

Closed Circuit8 closed 3 years ago

Circuit8 commented 3 years ago

Trying to run any of the examples gives me a linking error:

error: linking with `cc` failed: exit status: 1
...
 = 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

I'm running on Ubuntu 20.04.2 LTS Rust version stable-x86_64-unknown-linux-gnu - rustc 1.54.0

Thanks in advance for your help.

jakobhellermann commented 3 years ago

This looks like you're missing some native dependencies required by bevy. Can you run the steps at https://github.com/bevyengine/bevy/blob/main/docs/linux_dependencies.md and try again?

Circuit8 commented 3 years ago

Just double checked and I have everything installed, building and running the bevy examples, and my own bevy project works just fine. Seems to only occur with this project so far.

Circuit8 commented 3 years ago

Further to this, checked on my other ubuntu device, still had the same issue. I did notice though the first time I attempt to build the project after adding the crate this comes up:

error: extern location for bevy_inspector_egui_derive does not exist: .../target/debug/deps/libbevy_inspector_egui_derive-10c1349a65bafbf5.so
  --> .../.cargo/registry/src/github.com-1ecc6299db9ec823/bevy-inspector-egui-0.5.1/src/lib.rs:90:9
   |
90 | pub use bevy_inspector_egui_derive::Inspectable;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

error: could not compile `bevy-inspector-egui`

Further attempts to do cargo build result in the linking error from my first post.

Circuit8 commented 3 years ago

FYI managed to fix this by running sudo apt-get install libxcb-composite0-dev. Thanks for the great library, really appreciate it!