我正在尝试开始使用bevy,我已经按照bevy书的建议设置了环境,包括使用夜间工具链。然而,当我尝试构建bevy时,我得到消息:
error: failed to run custom build command for `alsa-sys v0.3.1`
error: failed to run custom build command for `libudev-sys v0.1.4`
我的cargo.toml
是:
[package]
name = "Bevy_1"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.dev]
opt-level = 1
[profile.dev.package."*"]
opt-level = 3
[dependencies]
bevy = {version = "0.10", features = ["dynamic_linking"]}
,我的rust-toolchain.toml
是:
[toolchain]
channel = "nightly"
我该如何解决这个问题?
您需要为您的linux发行版安装所需的依赖项。
这在所有主要(桌面)操作系统的厚书中也有涉及。