mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Add MSVC install instructions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user