amethyst / rustrogueliketutorial

Roguelike Tutorial in Rust - using RLTK
MIT License
898 stars 156 forks source link

build fail: could not compile `ultraviolet`. #124

Open srp-at-ictu opened 4 years ago

srp-at-ictu commented 4 years ago

I can run the first chapter of the tutorial until I issue cargo update. Then the build fails because crate 'ultraviolet' is calling an unknown method out of crate 'wide'.

> git clone https://github.com/thebracket/rustrogueliketutorial .
> cd rustrogueliketutorial\chapter-01-hellorust
> cargo update
> cargo run

error[E0599]: no method named 'sin_cos' found for struct 'wide::m_f32x4::f32x4' in the current scope

PS: fantastic tutorial.

steelx commented 4 years ago

https://github.com/termhn/ultraviolet/issues/35

workaround:

cargo clean
cargo update -p wide --precise 0.4.3
cargo run
steelx commented 4 years ago

As mentioned by @Lokathor on discord using wide 0.4.3 will have issues with circles calculations.

hence he suggested to use as below [dependencies] wide = { version = "0.4.5", features = ["extern_crate_std"] }

srp-at-ictu commented 4 years ago

the second option, followed by an cargo update, and then build works. ultraviolet is now 0.4.6.

thanks