1; $slashes--) { $require_target .= "../"; } $require_target .= "template.php"; require($require_target); # Now set the title of the page: setPageTitle("Installation Instructions"); # Make the header. generateHeader($_SERVER['PHP_SELF']); ?>
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.

So...

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:

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

NetBSD users may need a slightly different command:

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

...to 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
(Optional) Making symlinks to replace GLUT

Make a symlink from libfreeglut.so.0.2.0 to libglut.so.3, libglut.so.3.7 and libglut.so.3.7.0

ln -s /usr/lib/libfreeglut.so.0.2.0 /usr/lib/libglut.so.3
ln -s /usr/lib/libfreeglut.so.0.2.0 /usr/lib/libglut.so.3.7
ln -s /usr/lib/libfreeglut.so.0.2.0 /usr/lib/libglut.so.3.7.0