Closed NCrashed closed 2 years ago
Hi, is it compiles with stable Rust? Fyrox is not guaranteed to be built on nightly, everything is made to work on stable.
Stable:
$ cargo build
error: failed to run `rustc` to learn about target-specific information
Caused by:
process didn't exit successfully: `rustc - --crate-name ___ --print=file-names -Z sanitizer=thread --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=cfg` (exit status: 1)
--- stderr
error: the option `Z` is only accepted on the nightly compiler
Version:
$ rustup default stable
info: using existing install for 'stable-x86_64-unknown-linux-gnu'
info: default toolchain set to 'stable-x86_64-unknown-linux-gnu'
stable-x86_64-unknown-linux-gnu unchanged - rustc 1.60.0 (7737e0b5c 2022-04-04)
Strange. I use nightly, and the project compiles fine. I've also built the examples in the cheat book with nightly - all good as well.
It may be worth testing first if the dependency builds correctly:
cargo install cargo-download
cargo download strum=0.24 | tar xvz
cd strum-0.24.0
cargo build
so that Fyrox itself can be ruled out.
The engine is not being tested on nightly compiler, only with stable. Any issues with nightly builds happens because of instability of the compiler.
Hi, I struggle to build examples
cargo run --example simple
.Platform:
nightly-x86_64-unknown-linux-gnu
Version:rustc 1.62.0-nightly (52ca603da 2022-04-12)
Commit: 2f85940753bf5a084ffc24f6c500e823885b1841