Add MSVC install instructions

This commit is contained in:
Jason Dagit
2016-10-24 11:51:18 -07:00
parent f45ef41878
commit 5f1fa99dac
+25
View File
@@ -125,6 +125,31 @@ http://www.libsdl.org/ (SDL2-devel-2.0.x-mingw.tar.gz).
into your cargo project, right next to your Cargo.toml.
### Windows (MSVC)
1. Unpack SDL2-devel-2.0.x-VC.zip to a folder of your choosing (You can delete it afterwards).
2. Copy all lib files from
> SDL2-devel-2.0.x-VC\SDL2-2.0.x\lib\x64\
to (for Rust 1.6 and above)
> C:\Program Files\Rust\\**lib**\rustlib\x86_64-pc-windows-msvc\lib
or to (for Rust versions 1.5 and below)
> C:\Program Files\Rust\\**bin**\rustlib\x86_64-pc-windows-msvc\lib
or to your library folder of choice, and ensure you have a system environment variable of
> LIB = C:\your\rust\library\folder
For Rustup users, this folder will be in
> C:\Users\{Your Username}\.multirust\toolchains\{current toolchain}\lib\rustlib\{current toolchain}\lib
Where current toolchain is likely `stable-x86_64-pc-windows-msvc`.
3. Copy SDL2.dll from
> SDL2-devel-2.0.x-VC\SDL2-2.0.x\lib\x64\
into your cargo project, right next to your Cargo.toml.
# Installation
If you're using [cargo][crates] to manage your project, you can