This repository should help me track my progress of following the SDL2 tutorials at lazyfoo.net. If you're following the tutorials at lazyfoo.net this should help you too.
- Clone the repository (or download a ZIP)
- The code for the individual tutorials are in separate folders.
cd
to the folder you'd like to build. - Use
make
to build the tutorial code - Use
./a.out
to run the code
Operating System: OSX 10.11.6
Compiler: Clang
Text Editor: Visual Studio Code
- Run
xcode-select --install
on the terminal. (I had to run this again after upgrading OSX to El Capitan) - Install homebrew
- Install SDL2 by typing:
brew install sdl2 --universal
- Install Visual Studio Code (or any other text editor of your choice)
- Done! You should be able to compile SDL2 code with:
clang++ filename.cpp -lSDL2 -g
Operating System: Ubuntu 16.04 LTS
Compiler: Clang
Text Editor: Visual Studio Code
- Install clang (if you don't already have it) with:
sudo apt-get install clang
- Install SDL2 by typing:
sudo apt-get install libsdl2-dev
- Install Visual Studio Code (or any other text editor of your choice) from here
- Done! You should be able to compile SDL2 code with:
clang++ filename.cpp -lSDL2 -g