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
The instructions below will create a working development environment, but you are free to setup your own. However, code produce in your development environment must run on the machines I use when I grade.
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 git gitk
- Other distributions can be configured similarly.
- Your distro might not have SFML 2.5. Older 2.x version can work, but 2.5 is best.
Windows
- Download and install the git scm tools.
- Download MS Visual Studio. Versions up to 2017 should work fine. You can get a copy from Microsoft, Rose's link to the Microsoft Imagine store. You might be asked to install a download helper utility; the actual Visual Studio downlaod is quite large.
- Install Visual Studio and make sure you install the C++ components. You might need to do a custom install and make sure the Visual C++ components are installed. You will need a Microsoft account to complete the installation.
- Download the lastest SFML 2.5 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.5.0/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.5 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..