[Lubuntu] Install OpenGL

Installation: 5 steps

According to Installation Guide on Wikibooks, we need to install:

1. GCC (if you don’t have it already and make should be installed automatically with gcc..)

sudo apt-get install gcc

2. mesa:

sudo apt-get install libgl1-mesa-dev

Next comes the libraries:

3. glew (Ubuntu forum):

sudo apt-get install libglew-dev

4. freeglut (Blog post):

sudo apt-get install freeglut3 freeglut3-dev
sudo apt-get install binutils-gold

According to the blog post, you might need the second line if you are using Ubuntu 11.10 above for linking. I’m using Lubuntu 14.04, but the second line doesn’t seem necessary though.

5. glm:

sudo apt-get install libglm-dev

=====================================

To check if OpenGL drivers are running correctly (Source):

glxinfo |grep direct

(it should return a message that says “direct rendering: Yes”)

 

We will run a sample test program next!