2025 March 29,

CS 311: Installation Instructions

This course is designed to work on a wide range of computers. We use OpenGL and Vulkan, so that we don't have to commit to proprietary graphics interfaces such as Microsoft's Direct3D and Apple's Metal. We use GLFW, so that we don't have to commit to proprietary application interfaces such as Microsoft's .NET and Apple's Cocoa. My goal is for every student to be able to use their own computer, if they want to.

However, graphics interacts closely with the operating system and the underlying hardware. So in practice it is sometimes hard to get all of the tools working on everyone's computer.

Follow the instructions below for your specific operating system. If you fail, then ask Mike Tie (Olin 337) for help. If we really can't get your machine set up, then you'll have to work on Carleton's macOS machines in Olin 304. It might not be as convenient as your own computer, but all of the software is already installed and tested.

macOS

Follow these four steps in order. The second step is big.

  1. In Apple's App Store, download and install the Xcode developer environment. Among other things, it gives you the Clang compiler for the C programming language.
  2. Follow Mike Tie's instructions for macOS 13 (and later)
  3. You probably already have a text editor that you like. If not, then get one: Xcode, VS Code, BBEdit, etc.
  4. Test your installation by compiling and running a couple of the C tutorials from the first day's homework. Your test should definitely include version 040mainLinking.c and its dependency on 040pixel.o.

Windows

The easiest strategy is to install Ubuntu Linux as an application, and do CS 311 in Ubuntu. See Mike Tie's instructions for Windows 11.

Test your installation by compiling and running a couple of the C tutorials from the first day's homework. Your test should definitely include version 040mainLinking.c and its dependency on 040pixel.o.

Linux, BSD, etc.

This option is not supported by Mike Tie or me, and it might require significant work on your part, but you are welcome to try. Put simply, follow Mike Tie's Windows 11 installation instructions linked above, but work directly in your operating system, rather than working in Ubuntu in Windows.

Probably you have a text editor that you like. If not, then get one.

Finally, test your installation by compiling and running a couple of the C tutorials from the first day's homework. Your test should definitely include version 040mainLinking.c and its dependency on 040pixel.o.