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.

Comments

Popular posts from this blog

Easy and accurate SVG to DXF conversion using Inkscape and pstoedit

Automated builds with Netbeans Platform 8.0.2

Netbeans Platform: Mac OSX App Bundle and Embedded JRE with Maven