-
Notifications
You must be signed in to change notification settings - Fork 40
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
winit error: Please select a feature to build for unix: x11
, wayland
#65
Comments
Had the same issue. Added Entire Cargo.toml: [package]
name = "bevy_tiled_prototype"
description = "A plugin for rendering tiled maps."
version = "0.2.5"
authors = ["John Mitchell", "Daniel Taub<[email protected]>", "Rob Parrett<[email protected]>"]
homepage = "https://github.com/StarArawn/bevy_tiled"
repository = "https://github.com/StarArawn/bevy_tiled"
license-file = "LICENSE"
edition = "2018"
exclude = [
"assets/*",
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = [
"bevy/bevy_wgpu",
"bevy/bevy_winit",
"bevy/png",
"bevy/render",
]
web = [
"bevy/bevy_winit",
"bevy/render",
]
[dependencies]
anyhow = "1.0"
bevy = { version = "0.5", default-features = false, features = ["x11"] }
tiled = { version = "0.9", default-features = false } > rustc --version
rustc 1.56.0-nightly (1f0a591b3 2021-07-30)
> xdpyinfo | grep version
version number: 11.0
X.Org version: 1.21.1.1
> cargo run --example ortho_main || echo "No bueno"
Finished dev [unoptimized + debuginfo] target(s) in 0.07s
Running `target/debug/examples/ortho_main` |
bjorn
added a commit
to bjorn/bevy_tiled
that referenced
this issue
Jan 25, 2022
Otherwise examples won't run on Linux/X11 with the following error: error: Please select a feature to build for unix: `x11`, `wayland` --> /home/bjorn/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.24.0/src/platform_impl/linux/mod.rs:10:1 Closes StarArawn#65
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Building the repository as of 5e802b8, dependency
winit v0.24.0
requiresCargo.toml
configuration to select a feature to build for unix:x11
,wayland
. I've tried adding that configuration toCargo.toml
without success. Can theREADME.md
be updated to provide guidance on the syntax for doing this, and the feature defaults updated to enable thex11
option?The text was updated successfully, but these errors were encountered: