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

Failed to load sdl2 #504

Closed
yrifl opened this issue Nov 17, 2022 · 4 comments
Closed

Failed to load sdl2 #504

yrifl opened this issue Nov 17, 2022 · 4 comments

Comments

@yrifl
Copy link

yrifl commented Nov 17, 2022

Compiled with command :

nim c -r --threads:on src/nim.nim

Error I got when running the program.

could not load: SDL2.dll
(bad format; library may be wrong architecture)

Nim Compiler Version 1.6.8 [Windows: amd64]
Compiled at 2022-09-27

What should I do?

@yrifl
Copy link
Author

yrifl commented Nov 17, 2022

I test the code from the readme you wrote.

@yglukhov
Copy link
Owner

Make sure sdl2.dll archiecture matches the binary

@Tormund
Copy link
Collaborator

Tormund commented Nov 17, 2022

So first of all, you sould download the SDL2.dll https://github.com/libsdl-org/SDL/releases/tag/release-2.24.2
Then place it somewhere you like it most corresponding to this documentation - https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order

@yrifl
Copy link
Author

yrifl commented Nov 18, 2022

So first of all, you should download the SDL2.dll https://github.com/libsdl-org/SDL/releases/tag/release-2.24.2 Then place it somewhere you like it most corresponding to this documentation - https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order

Thank you it works!

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

3 participants