freeglut - Opensourced alternative to GLUT ChangeLog

HOWTO


# freeglut 2.4.0
# ==============
# Prerequisites:
# gawk
# sed
# grep
# XFree86 or X.org

cd
test -f installed/freeglut-2.4.0.tar.gz &&
mv installed/freeglut-2.4.0.tar.gz .
test ! -f freeglut-2.4.0.tar.gz &&
wget http://download.sf.net/freeglut/freeglut-2.4.0.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "freeglut-*" -exec rm -r {} \;
tar xzvf ~/freeglut-2.4.0.tar.gz
cd freeglut-2.4.0
test $UID = 0 && chown -R root:root .

# If you want to use freeglut as a replacement for GLUT, you can either skip
# the --disable-replace-glut configure flag, or create symlinks - see below.
./configure --disable-replace-glut
make

# Become root to install it
su

make install
ldconfig

# Some apps will look for -lfreeglut and can use freeglut as-is, others will
# look for -lglut.  If you want to use freeglut as a replacement for GLUT,
# create the necessary symlinks:
ln -sf /usr/local/lib/libfreeglut.so /usr/local/lib/libglut.so
ln -sf /usr/local/lib/libfreeglut.so.3 /usr/local/lib/libglut.so.3
ln -sf /usr/local/lib/libfreeglut.so.3.8.0 /usr/local/lib/libglut.so.3.8.0
ldconfig
# Keep in mind that you probably have /usr/X11R6/lib/libglut* too and make
# sure you don't also have /usr/lib/libglut*

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/freeglut-*.tar.*
mv freeglut-2.4.0.tar.gz installed/


# If you ever want to uninstall freeglut, this should do it:
cd
su
test -d src/freeglut-* && ( cd src/freeglut-* ; make uninstall )
test -d /usr/local/include/GL && rm -r /usr/local/include/GL
rm -r /usr/local/lib/libfreeglut.*
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "freeglut-*" -exec rm -r {} \;
rm -f ~/installed/freeglut-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EST -0500)
HOWTO last updated: 2006-08-21 1:45pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]