GLUT on Ubuntu: Basics
To install GLUT:
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:
That's it, now you're ready to figure out something cool to make.
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
g++ helloworld.cpp -lglut
That's it, now you're ready to figure out something cool to make.
Comments
Post a Comment