-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fatal error LNK1181: cannot open input file 'SDL2.lib' #391
Comments
for what it's worth, i "fixed" the problem by replacing sdl2 with glutin wherever it appeared. all examples work for me on win10 with glutin. |
help, where the path of sdl2 be replaced |
I had the same problem and fixed it by following and adapting the instructions on the README.md of the SDL2 bindings crate:
Since I use the x86_64-pc-windows-msvc toolchain, i downloaded SDL2-devel-2.0.*-VC.zip instead.
In my case, I copied all x64 *.lib files in the archive to
Finally,
For me, the SDL2.dll was in the x64 folder with the three *.lib files. I had to copy it next to the .toml file for each example that had a linker problem (cube.rs and user_input.rs). Somehow this seems like a bandaid solution. Is it not possible to install SDL2 in one place for all projects to refer to? |
In my case I copied all libs files to: It's work fine! Huge thx to @clemarescx |
On Win 10 i run in this issue. reading docs of rust sdl helped |
Thanks this worked |
Thank you all 😊 I downloaded the lib files from the SDL2-devel-2.0.*-VC.zip package and moved them into the |
i get this error when i run
cargo build
in the main project directory on windows 10. i assume i'm getting this error because i don't have SDL2 on my computer, but SDL for Windows is a .dll, not a .lib. and even then, i wouldn't know where to put the file so piston can find it.The text was updated successfully, but these errors were encountered: