Setup development environment
Install and configure the programming environment you plan to use to complete your programming projects for the course. Things you will need:
- C++ compiler for all code projects
- CMake to create the make files
- OpenGL library to access your graphics card
- SFML to startup OpenGL and handle events
- I will provide the rest of the tools you need
Linux
- Install the GNU C++ toolchain, the SFML development libraries, and OpenGL development libraries. The packages are likely g++, make, cmake, libsfml-dev, and libglu1-mesa-dev.
- Here's a command for Ubuntu systems: sudo apt-get install g++ make cmake libsfml-dev libglu1-mesa-dev
- Other distributions can be configured similarly.
- Your distro might not have SFML 2.4. Older 2.x version can work, but 2.4 is best.
Windows
- Download MS Visual Studio. Versions up to 2015 should work fine (2017 is not supported right now). You can get a copy from Microsoft, Rose's Dreamspark site, or my local server. You might be asked to install a download helper utility; the actual Visual Studio downlaod is quite large.
- Install Visual Studio. You might need a product key from Dreamspark, or a Microsoft account. You need to install C++. You might need to do a custom install and make sure the Visual C++ components are installed.
- Download the lastest SFML 2.4 Windows development libraries. Make sure to get the 32bit version that matches your Visual Studio version.
- Windows has no elegant way to install dev libraries; this is how we will do it:
- Make a directory on your C drive called
dev
- Extract the SFML files to this directory.
- This should have a path like 'C:/dev/SFML-2.4/include' when you are done.
- Make a directory on your C drive called
- Download and install CMake.
- When installing, make sure to add it to your system path.
Mac OS X
- Install XCode.
- Download the SFML 2.4 Mac development libraries.
- Follow the install instructions on the SFML website. You don't need to make the test program.
- Download and install CMake.
- After install, run CMake, then follow the instructions at menubar option: Tools > How to Install For Command Line..
Now it's time to checkout your course repo.