27 September 2011

Installing OpenGL on Ubuntu

OpenGL is installed by the graphics driver provider, so you don't need to worry about installing OpenGL. The only thing you require is the GL libraries to work on OpenGL coding.

This can be done by installing glut as follows -

 sudo apt-get install freeglut3 freeglut3-dev

This will install the required libraries in /usr/lib/libglut.a and includes in the /usr/include/GL folder.

To test the library just write any openGL code and compile is using the linker "-lglut" as -

$ g++ helloworld.cpp -lglut



No comments:

Post a Comment