How to install freeglut...

It's not *that* hard...

Presently, there are few pre-packaged installs, so the recommended method for most users is to follow these instructions. Even if you have a package system that includes freeglut, you may wish to manually install for a variety of reasons. A likely reason is simply that the latest version of freeglut may not have been packaged.


Download freeglut

First, you need to download a freeglut release. Newer is generally better, but unless you know what you're doing, you should use a release marked "Stable." So download the newest Stable release that you can. (On the other hand, if you discover a bug and want to report it, it is helpful to try to run the "current" freeglut, as we have been known to fix some bugs before they are reported.)

Untar and configure the packages

Copy the tarball you downloaded into a temporary directory. Untar it as follows:

zcat freeglut-2.2.0.tar.bz2 | tar -vxf -
Change to the resulting directory:
cd freeglut-2.X.X
Now, configure the packages:

NetBSD users may need a slightly different command:

LDFLAGS=-Wl,-R/usr/X11R6/lib ./configure properly handle things.

Build and install freeglut

Once that completes, it's time to build and install freeglut (Note that you will have to be the superuser to make install).

This is as simple as:

make all
make install

This will install the libraries, headers, and symlinks to replace GLUT.

For Android, please see the dedicated Android page.

For BlackBerry support, please see README.blackberry in the project source code.

For OpenGL ES support (1.x and 2.x), please see the dedicated GLES page.