-
-
Notifications
You must be signed in to change notification settings - Fork 115
Developer Getting Started: MinGW
- Git client (GitHub for Windows)
- CMake
- MinGW
- SDL development libraries: SDL2, SDL2_image, SDL2_mixer
Instructions for TortoiseGit are also available; these are not recommended
Repo URL: https://github.com/cxong/cdogs-sdl.git
-
Optional: for the purposes of this walkthrough, the clone location is
C:\cdogs-sdl
. To make GitHub for Windows automatically clone to this location, set the default storage directory toC:\
. -
Click the "Clone in Windows" button in the repo website.
-
You should now see the repo contents in
C:\cdogs-sdl
-
From the contents of the SDL-2.0.XX package, copy the contents of
bin
toC:\MinGW\bin
,include
intoC:\MinGW\include
, andlib
intoC:\MinGW\lib
(so you should have the filesC:\MinGW\bin\sdl-config
,C:\MinGW\include\SDL\SDL.h
,C:\MinGW\lib\libSDL.dll.a
etc.) -
Do the same for SDL_mixer and SDL_image, combining the contents of the include and lib folders. However, you should also copy the DLLs e.g.
SDL_mixer.dll
toC:\MinGW
for CMake's benefit. -
Copy the
.dll
files to theC:\cdogs-sdl\src
folder -
Create an environment variable
SDLDIR
that points toC:\MinGW