I'm currently developing a game on Windows using the MSYS2 environment and mingw64. I've successfully installed SDL2 using the msys package manager (pacman) and using CMake, was able to get it up and running. However, I've noticed that my application runs without requiring the SDL2.dll file which I have noticed is typically needed for running SDL2 applications on Windows.

While this wouldn't really bug me if I were using SDL just for learning, I am concerned about deployment (on Windows only) as I intend to release it on Steam and it seems essential to include the SDL2.dll file for the game to run correctly on Windows systems. I should mention that I when installed SDL2 using msys via pacman, it does provide the SDL2.dll file.

So, if I decide to deploy my game on steam, is it just a matter of copying the SDL2.dll file into the same directory as my game executable? Will this ensure that my game runs correctly on Windows systems without requiring users to install SDL2 separately?

P.S: As the title points out, I am new in terms of all of this msys and mingw stuff as I am mostly a linux user, but decided to switch to windows mainly because I am thinking about deploying my game on steam for windows.



You must log in to answer this question.

Browse other questions tagged .