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
- 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, libsfml-dev, and libglu1-mesa-dev.
- Here's a command for Ubuntu systems: sudo apt-get install g++ make libsfml-dev libglu1-mesa-dev
- Other distributions can be configured similarly.
- Your distro might not have SFML 2.3. Older 2.x version can work, but 2.3 is best.
Windows
- Download MS Visual Studio 2013. You can get a copy from Rose's Dreamspark site. You will be asked to install a download helper utility; the actual Visual Studio downlaod is quite large. Do not get Visual Studio 2015; it requires significant extra effort to work with SFML.
- Install VS2013. You will need the product key you recieved from Dreamspark. You don't need any Optional Features and can deselect all to reduce install time.
- Download the lastest SFML 2.3 Windows development libraries. You probably want the 'Visual C++ 12 (2013) - 64-bit' files.
- Extract the files. This should result in a folder like 'SFML-2.3'
- Windows has no elegant way to install dev libraries; this is a hacky way of getting this working.
- Note: if you can't find these paths, your Visual Studio install might be in the
Program Files (x86)
folder. - Copy
SFML-2.3/include/SFML
toProgram Files/Microsoft Visual Studio 12.0/VC/include/
- Copy
SFML-2.3/lib/*.lib
toProgram Files/Microsoft Visual Studio 12.0/VC/lib/amd64/
- Copy
SFML-2.3/bin/*.dll
toProgram Files/Microsoft Visual Studio 12.0/VC/bin/amd64/
- Note: if you can't find these paths, your Visual Studio install might be in the
Mac OS X
- Install XCode.
- Download the SFML 2.3 Mac development libraries.
- Follow the install instructions on the SFML website. You don't need to make the test program.
✱What OS will you be using in this class?