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

feature bundled tries to copy sdl2.dll instead of SDL2.dll #899

Closed
rofrol opened this issue Jun 11, 2019 · 1 comment · Fixed by #911
Closed

feature bundled tries to copy sdl2.dll instead of SDL2.dll #899

rofrol opened this issue Jun 11, 2019 · 1 comment · Fixed by #911
Labels
bug build-process Everything related to build.rs, or the build process in general

Comments

@rofrol
Copy link
Contributor

rofrol commented Jun 11, 2019

thread 'main' panicked at 'Failed to copy SDL2 dynamic library from /home/roman/projects/rust-sdl2/target/x86_64-pc-windows-gnu/debug/build/sdl2-sys-2fe96c8cb332ea97/out/bin/sdl2.dll to /home/roman/projects/rust-sdl2/target/x86_64-pc-windows-gnu/debug/sdl2.dll: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:997:5

But there is SDL2.dll file:

$ file target/x86_64-pc-windows-gnu/debug/build/sdl2-sys-2fe96c8cb332ea97/out/bin/SDL2.dll
target/x86_64-pc-windows-gnu/debug/build/sdl2-sys-2fe96c8cb332ea97/out/bin/SDL2.dll: PE32+ executable (DLL) (GUI) x86-64, for MS Windows

To use bundled I have modified Cargo.toml:

[dependencies.sdl2-sys]
path = "sdl2-sys"
version = "^0.32"
features = ["bundled"]
@Cobrand Cobrand added bug build-process Everything related to build.rs, or the build process in general labels Jun 11, 2019
@agausmann
Copy link
Contributor

I've been able to reproduce this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug build-process Everything related to build.rs, or the build process in general
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants