Bare-bones example for using egui in SDL2 window with egui-wgpu as the backend renderer and egui-sdl2-event as the event handler.
cargo run
- Download
SDL2-devel-2.XX.X-mingw.zip
from here and extract to your specified location. Best to use the same version thatrust-sdl2
uses. - Install Windows toolchain target with
rustup target add x86_64-pc-windows-gnu
- Install
mingw
cross-compiler to your system, for Arch systems the package to install should bemingw-w64-gcc
- Edit the cross_compile_windows.sh script to match your system's paths and run it.
- You should now have windows executable in your
target/x86_64-pc-windows-gnu/release/
which you can run withwine
. I don't have a Windows machine at the moment, so I cannot verify that it works on real Windows machine, yet.