fix SDL2 instructions for Windows

This commit is contained in:
Theron 2020-02-02 12:08:11 -06:00
parent 4be3570c85
commit 7b0a45ec02
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ The code aims to follow the explanations from the [NES dev wiki](https://wiki.ne
1. Install [Rust](https://www.rust-lang.org/tools/install)
2. Configure SDL2 for your platform:
- Windows: `SDL2.dll` is already in the repo, though you do need the MSVC toolchain to use it. Have [Visual Studio](https://docs.microsoft.com/en-us/cpp/build/vscpp-step-0-installation?view=vs-2019) installed including the "Desktop development with C++" workload. Then make sure Rust is using that toolchain by running `rustup default stable-x86_64-pc-windows-msvc`.
- Windows: Have [Visual Studio](https://docs.microsoft.com/en-us/cpp/build/vscpp-step-0-installation?view=vs-2019) installed including the "Desktop development with C++" workload. Then follow the instructions here (skipping step 4 as `SDL2.dll` is already in the repo): https://github.com/Rust-SDL2/rust-sdl2#windows-msvc.
- macOS: Install [Homebrew](https://brew.sh/) and run `brew install sdl2`
- Linux: `sudo apt-get install libsdl2-dev` (or whatever your package manager is)
3. `cd nestur/ && cargo build --release` (be sure to build/run with the release flag or it will run very slowly)