• 1
    Install Cygwin with the tools.

    This is a guide to install Cygwin and its required tools. https://mindchasers.com/dev/openocd-darsena-windows

  • 2
    Get the LibSDL2

    Be sure to obtain the Development Libraries, and select the one with MinGW:

  • 3
    Extract LibSDL2 on the main system drive, and install SDL2 files on the Cygwin folder

    1.) Copy the library files from the x86_64-w64-mingw32/lib to C:/cygwin64/lib:

    2.) Copy the entire SDL2 folder from /x86_64-w64-mingw2/include into c:/cygwin64/lib/gcc/x86_64-pc-cygwin/10/include:

    Make sure the SDL2 folder is inside that include directory. Do not copy all its contents into the include folder - just put the folder inside.

    3.) Finally, copy the x86_64-w64-ming32/bin/*.* to the C:/cygwin64/bin: