Install libgl1-mesa-dev by entering the following commands in the terminal:
sudo apt update sudo apt install libgl1-mesa-dev
Description:
free implementation of the OpenGL API -- GLX development files
This version of Mesa provides GLX and DRI capabilities: it is capable of both direct and indirect rendering. For direct rendering, it can use DRI modules from the libgl1-mesa-dri package to accelerate drawing. . This package includes headers and static libraries for compiling programs with Mesa. . For a complete description of Mesa, please look at the libglx-mesa0 package.
Homepage: https://mesa3d.org/
Version: 18.0.0~rc5-1ubuntu1
Section: libdevel