1 Install OpenGL in Ubuntu/Linux Mint/Kali Linux

Steps to Follow: 

1) Open a terminal and enter the following commands to install the necessary libraries for OpenGL development:

Type/Copy/Paste following commands:

 
$ sudo apt-get update
$ sudo apt-get install freeglut3
$ sudo apt-get install freeglut3-dev
$ sudo apt-get install binutils-gold
$ sudo apt-get install g++ cmake
$ sudo apt-get install libglew-dev
$ sudo apt-get install g++
$ sudo apt-get install mesa-common-dev
$ sudo apt-get install build-essential
$ sudo apt-get install libglew1.5-dev libglm-dev

2 Get information about the OpenGL and GLX implementations running or not?

 
$ glxinfo | grep -i opengl

Your will get follwoing information : ( It Means OpenGL Installed )

 
OpenGL vendor string: NVIDIA Corporation

OpenGL renderer string: GeForce 8800 GT/PCIe/SSE2

OpenGL version string: 2.1.2 NVIDIA 310.44

OpenGL shading language version string: 1.20 NVIDIA via Cg compiler

OpenGL extensions:
Previous
Next Post »