Skip to content
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

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

Open
VincePlatt opened this issue Feb 12, 2023 · 0 comments

Comments

@VincePlatt
Copy link

VincePlatt commented Feb 12, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant