There are many of students feel difficult to install the OpenGL/Glut libraries in Ubuntu or any Linux. Here we are going to learn how to install the OpenGL/Glut libraries in your Desktop or PC to execute the OpenGL Programs in C/C++ Computer graphics.
How to Install OpenGL/Glut libraries in Ubuntu/Linux
1. The first step is to open terminal using CTRL+ALT+T command.
2. Now install the development libraries of OpenGL/Glut in Ubuntu (paste the below command on terminal):
System will automatically install the necessary files which you need to run the OpenGL programs in Ubuntu.
Note: we are running any openGL code using simple command
Use the following command and create the file, as done with usual C/C++ program in Linux.
than run using this command