When I come across situations like these while compiling, I usually search it in apt-cache.
For example, if the programs complain about a missing libglut.so.3, I'll remove the lib part and all the extension and search with just glut. Searching this way returned this result
libkwinglutils7 - KDE window manager gl utils library
libkwinglutils6 - KDE window manager gl utils library
libkwinglutils1abi3 - library with OpenGL utilities for the KDE window manager
libkwinactiveglutils1abi3 - library used by accellaration for the KDE window manager Active
freeglut3 - OpenGL Utility Toolkit
python-opengl - Python bindings to OpenGL (Python 2)
libkwinglutils1 - library used by accellaration for the KDE window manager
freeglut3-dbg - OpenGL Utility Toolkit debugging information
freeglut3-dev - OpenGL Utility Toolkit development files
libghc-glut-dev - Haskell GLUT binding for GHC
libghc-glut-doc - Haskell GLUT binding for GHC; documentation
libghc-glut-prof - Haskell GLUT binding for GHC; profiling libraries
libhugs-glut-bundled - A binding for the OpenGL Utility Toolkit
libmgl-glut7.4.0 - library for scientific graphs (glut interface for windows)
libtaoframework-freeglut-cil-dev - Tao CLI binding for freeglut - development files
libtaoframework-freeglut2.4-cil - Tao CLI binding for freeglut
pfsglview - command line HDR manipulation programs (OpenGL/GLUT viewer)
mgltools-mglutil - Molecular Graphics Laboratory utility collection
Now, I'll only consider the packages with -dev suffix, because these are the packages with development libraries. There are only two of them. freeglut3-dev and libghc-glut-dev. I'll go for freeglut3-dev because it seems most relevant.