i wanted to give the simulations from Making an N-Body Simulation a try, but i could not compile the code :cry:
hoping there is a solution for this :pray:
cheers!
repro
run either one of the following commands
cargo check
cargo build
cargo run --release
get the following error
error[E0432]: unresolved import `winit::platform::windows`
--> /home/disc/a.stevan/.local/share/cargo/git/checkouts/quarkstrom-59b32b829dff6ef4/db52869/src/lib.rs:17:15
|
17 | platform::windows::EventLoopBuilderExtWindows,
| ^^^^^^^ could not find `windows` in `platform`
error[E0599]: no method named with_any_thread found for struct EventLoopBuilder in the current scope
--> /home/disc/a.stevan/.local/share/cargo/git/checkouts/quarkstrom-59b32b829dff6ef4/db52869/src/lib.rs:510:50
510
let event_loop = EventLoopBuilder::new().with_any_thread(true).build();
^^^^^^^^^^^^^^^ method not found in EventLoopBuilder<()>
= help: items from traits can only be used if the trait is in scope
help: the following traits are implemented but not in scope; perhaps add a use for one of them:
1 + use winit::platform::wayland::EventLoopBuilderExtWayland;
1 + use winit::platform::x11::EventLoopBuilderExtX11;
|
hello there :wave:
i wanted to give the simulations from Making an N-Body Simulation a try, but i could not compile the code :cry:
hoping there is a solution for this :pray: cheers!
repro
with_any_thread
found for structEventLoopBuilder
in the current scope --> /home/disc/a.stevan/.local/share/cargo/git/checkouts/quarkstrom-59b32b829dff6ef4/db52869/src/lib.rs:510:50EventLoopBuilder<()>
use
for one of them:1 + use winit::platform::x11::EventLoopBuilderExtX11; |