Developing/Installing OpenGL in Ubuntu

>> Sunday, September 07, 2008

I'm taking Advanced Computer Graphics course this time and had to setup my Ubuntu 8.04 box to develop openGL in it. I thought these instructions will be helpful to others as well.

Setting Up OpenGL

In a terminal type

sudo apt-get update
sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev

Setting up man pages

sudo apt-get install ncompress imake

# download
cd /tmp
wget ftp://ftp.sgi.com/sgi/opengl/doc/mangl{,u,x}.tar.Z

# unpack (you need the ncompress package for this to work)
tar xf mangl.tar.Z release/xc/doc/man
tar xf manglu.tar.Z release/xc/doc/man
tar xf manglx.tar.Z release/xc/doc/man

# configure and make (you need the imake package for this to work)
cd release/xc/doc/man/GL/
for dir in * ; do cd $dir && xmkmf && make && cd - ; done

# install (will install them into /usr/X11R6/man)
for dir in * ; do cd $dir && sudo make install && cd - ; done

# clean up
cd /tmp
rm -rf /tmp/release

(instructions extracted from a post in ubuntuforums from geirha)

Setting Up Eclipse

Download Eclipse Eclipse IDE for C/C++ Developers. I had problems with ganymede, so I am using Europa release.

Follow the simple instructions found here

0 comments: