pixels icon indicating copy to clipboard operation
pixels copied to clipboard

x11 lib needed, perhaps this to install instructions?

Open Ran4 opened this issue 5 years ago • 3 comments

Users of this library is likely to stumble upon this issue, at least in linux environments.

https://github.com/servo/rust-xlib/issues/44

It's trivially fixable with sudo apt install libx11-dev and easily googleable, but perhaps adding this to README.md could be helpful?

Ran4 avatar May 27 '20 12:05 Ran4

Is this a build dependency for the crate (library), or for the examples?

parasyte avatar May 28 '20 01:05 parasyte

From a quick survey, it seems like this is actually a bug in the depths of wgpu. See the linked issue for details.

I'm happy to document the required dependency, but in the future I would be more interested in documenting how to disable the requirement by setting a feature flag. ;)

parasyte avatar May 28 '20 02:05 parasyte

The upstream issue has been resolved, and consumers of wgpu will be able to opt-in to libx11 if they need it, using something like the following Cargo.toml entry:

[target.'cfg(all(unix, not(target_os = "ios"), not(target_os = "macos")))'.dependencies]
gfx-backend-vulkan = { version = "0.5", features = ["x11"] }

I'll leave this ticket open to track the documentation work... which won't be viable to begin until we update wgpu.

parasyte avatar May 30 '20 06:05 parasyte