Skip to content
Lilis Iskandar edited this page Aug 14, 2016 · 8 revisions

Step 1: Installing SDL2

Before we can start using go-sdl2, we need to install the native version of SDL2.

Linux

On Linux, most of the popular distributions have SDL2 in their package repository. The following describes a command that can install SDL2 on specific Linux distributions. Note: some older distributions may be missing some if not all of the SDL2 packages. In that case, we may install SDL2 by compiling the source which will be described below.

Fedora

dnf install SDL2{,_image,_mixer,_ttf,_gfx}-devel

Arch Linux

pacman -S sdl2{,_image,_mixer,_ttf,_gfx}

Debian / Ubuntu

`apt-get install libsdl2{,-image,-mixer,-ttf,-gfx}-dev

macOS

TODO

Windows

TODO

Step 2: Installing go-sdl2

After we installed SDL2, we can proceed to installing go-sdl2.

Clone this wiki locally