Open jfkw opened 2 years ago
Had the same issue.
Added features = ["x11"]
to bevy dependency.
Compiled with no issues after.
You might want to add wayland if you are on wayland.
Entire Cargo.toml:
[package]
name = "bevy_tiled_prototype"
description = "A plugin for rendering tiled maps."
version = "0.2.5"
authors = ["John Mitchell", "Daniel Taub<dmtaub@gmail.com>", "Rob Parrett<robparrett@gmail.com>"]
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`
Building the repository as of 5e802b822222dabc729c7093043b74c028051519, 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?