Install libosmesa6-dev by entering the following commands in the terminal:
sudo apt update sudo apt install libosmesa6-dev
Description:
Mesa Off-screen rendering extension -- development files
This package provides the required environment for developing programs that use the off-screen rendering extension of Mesa. . For more information on OSmesa see the libosmesa6 package.
Homepage: https://mesa3d.org/
Version: 18.0.0~rc5-1ubuntu1
Section: devel