【发布时间】:2020-04-24 13:26:20
【问题描述】:
所以我遵循了 Amethyst Pong 教程,现在正在构建一个小的生命游戏程序。如果我使用cargo run 运行它,它工作正常,但如果我使用cargo build 然后运行
$ .\target\debug\game_of_life.exe
我得到错误:
Error: Error { inner: Inner { source: None, backtrace: None, error: ConfigError(File(Os { code: 3, kind: NotFound, message: "The system cannot find the path specified." })) } }
如果还不清楚我在 Windows 10 上。我还创建了一个空白 rust 项目并尝试运行它的可执行文件,它运行良好:
$ cargo new temp
$ cd temp
$ cargo build
$ .\target\debug\temp.exe
Hello, world!
复制步骤(必须安装 cargo 和 vulkan):
$ cargo install amethyst_tools
$ amethyst new temp
$ cd temp
$ cargo build
$ .\target\debug\temp.exe
Error: Error { inner: Inner { source: None, backtrace: None, error: ConfigError(File(Os { code: 3, kind: NotFound, message: "The system cannot find the path specified." })) } }
请注意:
$ amethyst new temp
$ cd temp
$ cargo run
工作正常
版本:
$ amethyst --version
Amethyst CLI 0.10.0
$ cargo --version
cargo 1.43.0 (3532cf738 2020-03-17)
我应该提供任何想法或更多信息吗?
【问题讨论】: