CSCI 1200 - Fall 2007
Computer Science II
  Contact Information


  Course Overview

  Web Resources
  Additional Tutoring


  Lecture notes
  Lab materials
  Test reviews

  Lab Times
  Office Hours

Academic Integrity

  Due Date and Time
  Late Day Policy
  Electronic Submission

Programming Tips

C++ Development
  Dev C++

Other Information
  Command Line Args
  File I/O
  Redirecting I/O

OpenGL/glut Installation Tips

Using Dev C++

  • Click "Go To Download Page"
  • Download from SourceForge
  • Once program is installed and set up, go to Tools/Check for Updates/Packages
  • Choose Community Devpacks in the drop down menu
  • Find and download the FreeGlut, glut, OpenGL and OpenGlut packages
  • Once the download and installation (all automatic) are complete, choose a new project.
  • Under the MultiMedia tab, choose FreeGlut.
  • You're all set. Start coding!
  • Note: If you're using Dev-C++ then you don't need the Makefile.

Using Cygwin on default RPI laptop w/ Windows Vista

From a helpful student in CS2 ... Thanks!
  • Before starting close any running cygwin based programs.
  • Get the cygwin setup program from I saved it in C:\cygwin but it shouldn't matter where you put it.
  • Run the downloaded setup program ("setup.exe") as an administrator (say allow to all the Vista security prompts). Click next. Choose "Install from Internet". Click next.
  • Root Directory should already be filled in with "C:\cygwin" and Install for All users should be checked. I have unix text file format selected but that setting shouldn't be critical. After verifying these options click next.
  • The local package Directory can be any temporary directory but the default "C:\cygwin\packagefiles" is probably a good idea to use (I'm assuming I didn't create that directory the last time I added cygwin packages). Click next.
  • Set the connection options appropriately for your situation. Direct Connection works on the RPI network. Click next.
  • Choose a mirror. My machine automatically picked which seems to be reasonably fast but any of them should work with varying speeds. Click next.
  • The next step is to pick what you want to install. I find it easiest to use "Full" mode instead of "Category" mode which can be chosen by clicking the "View" button. You need to install "freeglut" and "opengl". Find these packages in the list and click where it says "Skip" (under the "New" column). Skip should be replaced by a version number. You may also want to install ImageMagick (and any other open source software you want to have on your computer) while you're at it. When you're done click next.
  • Now all you need to do is wait for the software you selected (and any out of date software that was automatically selected) to be downloaded and installed (hint: go do something else).
  • At the last screen uncheck "Create icon on Desktop" (you probably already have one) and click Finish.
  • If Vista's Program Compatibility Assistant pops up just click "This program installed correctly".
  • Start cygwin as you normally would and navigate to the directory with the image viewer's source code in it (You need three files: image.h, Makefile (make sure your browser didn't rename it to Makefile.htm) and image_viewer.cpp).
  • Type "make cygwin_a" and press enter. With any luck you should now have a working "ImageViewer.exe"