DeadlockCode / n-body

Apache License 2.0
25 stars 3 forks source link

cannot build the code #1

Open a-stevan opened 1 day ago

a-stevan commented 1 day ago

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

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; |

a-stevan commented 1 day ago

so what i did is the following:

hope that helps people play with these simulations :relieved: