GLUT on Ubuntu: Basics

To install GLUT:
sudo aptitude install freeglut3 freeglut3-dev

This will install the OpenGL header files to /usr/include/GL/
And the library objects to /usr/lib/libglut.a

With all that taken care of now you just need a quick sample app to see if it worked, I googled "glut hello world" and this was the second result.

I needed to add "#include ". Also notice that GLUT is included like "#include ". I then renamed it to helloworld.cpp and was able to compile as follows:
g++ helloworld.cpp -lglut

That's it, now you're ready to figure out something cool to make.


Popular posts from this blog

Decommissioning the cloud: A self-hosted future

Taking Stuff Apart: Realistic Modulette-8

Using a JFileChooser to browse AWS S3