dyon icon indicating copy to clipboard operation
dyon copied to clipboard

Cargo install dyongame results in "fatal error LNK1181: cannot open input file 'SDL2.lib'"

Open VincePlatt opened this issue 2 years ago • 0 comments

Command: cargo install piston-dyon_interactive --example dyongame

To be honest, I don't know if this ought to be considered as a Dyon issue per se.

This issue is coming up on Windows 11 using rustc 1.67.1 (d5a82bbd2 2023-02-07) The linker being using is from VS 2022 at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.31.31103\bin\HostX64\x64\link.exe

For what it's worth, I was able to work around the problem by putting the SDL2 .lib files from SDL2-devel-2.26.3-VC.zip in my LIBPATH at %USERPROFILE%.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib

Will there be official binary releases of Dyon / Dyongame at some point so adopters aren't held back by these kinds of issues or is Dyon relegated to the Piston dev audience long term?

And, one more thing, using dyongame with any of the examples doesn't do anything. If I run dyon samples, those work fine though.

VincePlatt avatar Feb 12 '23 21:02 VincePlatt